mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
ntop: fix missing return from non-void function
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+19
@@ -0,0 +1,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
|
||||||
|
|
||||||
@@ -18,6 +18,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/ntop/ntop-${PV}.tar.gz \
|
|||||||
file://use-static-inline.patch \
|
file://use-static-inline.patch \
|
||||||
file://0001-nDPI-Include-sys-types.h.patch \
|
file://0001-nDPI-Include-sys-types.h.patch \
|
||||||
file://0001-plugins-Makefile.am-fix-for-automake-1.16.1.patch \
|
file://0001-plugins-Makefile.am-fix-for-automake-1.16.1.patch \
|
||||||
|
file://fix-missing-return-from-non-void-function.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "01710b6925a8a5ffe1a41b8b512ebd69"
|
SRC_URI[md5sum] = "01710b6925a8a5ffe1a41b8b512ebd69"
|
||||||
SRC_URI[sha256sum] = "7e8e84cb14d2173beaca4d4cb991a14d84a4bef84ec37b2276bc363f45c52ef8"
|
SRC_URI[sha256sum] = "7e8e84cb14d2173beaca4d4cb991a14d84a4bef84ec37b2276bc363f45c52ef8"
|
||||||
|
|||||||
Reference in New Issue
Block a user