[pmg-devel] [PATCH pmg-log-tracker 1/8] remove unused -I parameter

Dominik Csapak d.csapak at proxmox.com
Wed Feb 20 14:10:06 CET 2019


it was neither documented nor in use

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 pmg-log-tracker.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/pmg-log-tracker.c b/pmg-log-tracker.c
index 6dd7289..8d5e02f 100644
--- a/pmg-log-tracker.c
+++ b/pmg-log-tracker.c
@@ -1766,7 +1766,6 @@ main (int argc, char * const argv[])
 {
   char linebuf[linebufsize];
   char *line;
-  char *uniqueid = NULL;
 
   const char *text;
   const char *idx1;
@@ -1800,7 +1799,7 @@ main (int argc, char * const argv[])
     exit (-1);
   }
 
-  while ((opt = getopt (argc, argv, "f:t:s:e:h:m:q:x:l:I:vgn")) != -1) {
+  while ((opt = getopt (argc, argv, "f:t:s:e:h:m:q:x:l:vgn")) != -1) {
     if (opt == 'f') {
       parser->from = epool_strdup (&parser->ep, optarg);
     } else if (opt == 't') {
@@ -1811,8 +1810,6 @@ main (int argc, char * const argv[])
       parser->exclude_greylist = 1;
     } else if (opt == 'n') {
       parser->exclude_ndrs = 1;
-    } else if (opt == 'I') {
-      uniqueid = optarg;
     } else if (opt == 'h') {
       parser->server = epool_strdup (&parser->ep, optarg);
     } else if (opt == 'm') {
@@ -1919,11 +1916,7 @@ main (int argc, char * const argv[])
     exit (-1);
   }
 
-  if (uniqueid) {
-    printf ("# LogReader: %d %s\n", getpid(), uniqueid);
-  } else {
-    printf ("# LogReader: %d\n", getpid());
-  }
+  printf ("# LogReader: %d\n", getpid());
 
   printf ("# Query options\n");
   if (parser->from) printf ("# Sender:    %s\n", parser->from);
-- 
2.11.0




More information about the pmg-devel mailing list