]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: ignore -v option in csv mode
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 18 Mar 2016 13:28:53 +0000 (14:28 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 22 Mar 2016 15:34:35 +0000 (16:34 +0100)
client.c

index 2635a349ad4765e96107f24b893c70400499fb35..e560344a88f2db6212b337d526e5d8fc40034a4d 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1907,12 +1907,9 @@ format_name(char *buf, int size, int trunc_dns, int ref, uint32_t ref_id,
 static int
 check_for_verbose_flag(char *line)
 {
-  char *p = line;
-  if (!strcmp(p, "-v")) {
+  if (!csv_mode && !strcmp(line, "-v"))
     return 1;
-  } else {
-    return 0;
-  }
+  return 0;
 }
 
 /* ================================================== */