From 8ecddc86a4eb061be8f33d99759334794be343ea Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 16 Jul 2018 02:44:58 -0400 Subject: slbt_dump_machine(): following the switch away from streams, fix type of ret. --- src/helper/slbt_dump_machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helper') 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; } } -- cgit v1.2.3