Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
ntop
ntop-compile-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor