summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-16 02:44:58 -0400
committermidipix <writeonce@midipix.org>2018-07-16 02:44:58 -0400
commit8ecddc86a4eb061be8f33d99759334794be343ea (patch)
tree5052a56a93c3f1b082a3b612c102283e12f013c4 /src
parent632dbfd393543ac057bf2b2aef6eaf5db5aa168e (diff)
downloadslibtool-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.c4
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;
}
}