Code cleanup

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-07-21 15:01:30 +00:00
parent 004380827f
commit 56b5a41633

View File

@@ -12,7 +12,7 @@
#include <unistd.h>
static int
gt_show_print_status(int fd)
gt_show_status(int fd)
{
struct ctl_msg res, req = {.type = CTL_STATUS};
@@ -106,10 +106,7 @@ gt_show(int argc, char **argv)
return 1;
}
int ret = gt_show_print_status(fd);
if (ret == -2)
gt_log("bad reply from server\n");
int ret = gt_show_status(fd);
if (ret == -1)
perror("show");