aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntop/ntop/fix-missing-return-from-non-void-function.patch
blob: e627e59a5928d2cd457afcc99eee708c25c0958a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Fix following error:

netflowPlugin.c: In function 'netflowUtilsLoop':
netflowPlugin.c:2144:1: error: no return statement in function returning non-void [-Werror=return-type]
 2144 | }
      | ^

Return NULL like netflowMainLoop does.

--- ntop-5.0.1.orig/plugins/netflowPlugin.c	2012-03-09 17:44:17.000000000 +0000
+++ ntop-5.0.1/plugins/netflowPlugin.c	2019-08-09 10:25:40.878799852 +0000
@@ -2141,6 +2141,7 @@
       waitCondvar(&myGlobals.device[deviceId].netflowGlobals->ifStatsQueueCondvar);
     }
   }
+  return(NULL);
 }
 #endif