File ntop-compile-fix.patch of Package ntop

Index: globals-core.c
===================================================================
--- globals-core.c	(revision 4976)
+++ globals-core.c	(revision 4978)
@@ -140,14 +140,15 @@
  */
 void initNtopGlobals(int argc, char * argv[], int argc_started, char *argv_started[]) {
   int i, bufLen;
-  char *startedAs, *defaultPath;
+  char *startedAs, *defaultPath, *c;
 
   /*
    * Notice the program name
    */
-  myGlobals.program_name = strrchr(argv[0], CONST_PATH_SEP);
-  myGlobals.program_name =
-    (!myGlobals.program_name || !myGlobals.program_name[0]) ? (argv[0]) : (++myGlobals.program_name);
+  if((c = strrchr(argv[0], CONST_PATH_SEP)) == NULL)
+    myGlobals.program_name = argv[0];
+  else
+    myGlobals.program_name = &c[1];
 
   /*
    * save command line parameters
--- plugins/netflowPlugin.c	2011/11/24 13:16:02	1.1
+++ plugins/netflowPlugin.c	2011/11/24 13:42:10
@@ -25,7 +25,7 @@
 
 static void* netflowMainLoop(void* _deviceId);
 #ifdef HAVE_SNMP
-static void* netflowUtilsLoop(void* _deviceId);
+static void netflowUtilsLoop(void* _deviceId);
 #endif
 
 /* #define DEBUG_FLOWS  */
@@ -2003,7 +2003,7 @@
 /* ****************************** */
 
 #ifdef HAVE_SNMP
-static void* netflowUtilsLoop(void* _deviceId) {
+static void netflowUtilsLoop(void* _deviceId) {
   int deviceId = (int)_deviceId;
 
   while(1) {
openSUSE Build Service is sponsored by