The code was there, but the flag is never set.  Since this is a user
parameter error, why hide the message?

--- ntop-current/ntop.c.save    Fri Feb 15 07:11:41 2002
+++ ntop-current/ntop.c Fri Feb 15 07:12:51 2002
@@ -252,5 +252,4 @@
 static short handleProtocol(char* protoName, char *protocol) {
   int i, idx, lowProtoPort, highProtoPort;
-  short printWarnings = 0;

   if(protocol[0] == '\0')
@@ -274,5 +273,5 @@
 #endif
        servicesMapper[idx] = myGlobals.numIpProtosToMonitor;
-      } else if(printWarnings)
+      } else
        printf("WARNING: IP port %d (%s) has been discarded (multiple
instances).\n",
               idx, protoName);
@@ -298,5 +297,5 @@
 #endif
        servicesMapper[idx] = myGlobals.numIpProtosToMonitor;
-      } else if(printWarnings)
+      } else
        printf("WARNING: protocol '%s' has been discarded (multiple
instances).\n",
               protocol);
@@ -305,5 +304,4 @@
   }

-  if(printWarnings)
     traceEvent(TRACE_WARNING, "WARNING: unknown protocol '%s'. It has been
ignored.\n",
               protocol);

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop-dev

Reply via email to