diff options
author | midipix <writeonce@midipix.org> | 2018-07-16 02:44:58 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-07-16 02:44:58 -0400 |
commit | 8ecddc86a4eb061be8f33d99759334794be343ea (patch) | |
tree | 5052a56a93c3f1b082a3b612c102283e12f013c4 /src | |
parent | 632dbfd393543ac057bf2b2aef6eaf5db5aa168e (diff) | |
download | slibtool-8ecddc86a4eb061be8f33d99759334794be343ea.tar.bz2 slibtool-8ecddc86a4eb061be8f33d99759334794be343ea.tar.xz |
slbt_dump_machine(): following the switch away from streams, fix type of ret.
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/slbt_dump_machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c index fe04fc9..0640a07 100644 --- a/src/helper/slbt_dump_machine.c +++ b/src/helper/slbt_dump_machine.c @@ -47,7 +47,7 @@ int slbt_dump_machine( char * machine, size_t buflen) { - int ret; + ssize_t ret; pid_t pid; pid_t rpid; int code; @@ -102,7 +102,7 @@ int slbt_dump_machine( } else { close(fd[0]); - return ret; + return -1; } } |