From 56b5a416333f4f13892eeaa9950fac4f1d2d3aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Sun, 21 Jul 2019 15:01:30 +0000 Subject: [PATCH] Code cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/show.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/show.c b/src/show.c index 1c0716f..8b5b15a 100644 --- a/src/show.c +++ b/src/show.c @@ -12,7 +12,7 @@ #include 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");