aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2020-02-22 20:39:47 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2020-02-24 23:25:28 +0100
commit806354ab5350d885b553c7e0d7ad022af2e73e41 (patch)
tree1ac0b7438c0a060bbf8bddd7091dba3622b62bcd /package/network
parent930fc09803f1e75958d573bc55452b8ea61137be (diff)
downloadupstream-806354ab5350d885b553c7e0d7ad022af2e73e41.tar.gz
upstream-806354ab5350d885b553c7e0d7ad022af2e73e41.tar.bz2
upstream-806354ab5350d885b553c7e0d7ad022af2e73e41.zip
linux-atm: Fix compile warning
The function trace_on_exit() is given to atexit() as a parameter, but atexit() only takes a function pointer to a function with a void parameter. This problem was introduced when the on_exit() function was incompletely replaced by atexit(). Fixes: ba6c8bd6142f ("linux-atm: add portability fixes") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/linux-atm/patches/400-portability_fixes.patch16
1 files changed, 15 insertions, 1 deletions
diff --git a/package/network/utils/linux-atm/patches/400-portability_fixes.patch b/package/network/utils/linux-atm/patches/400-portability_fixes.patch
index 9fe3e1faea..41425eed19 100644
--- a/package/network/utils/linux-atm/patches/400-portability_fixes.patch
+++ b/package/network/utils/linux-atm/patches/400-portability_fixes.patch
@@ -34,7 +34,21 @@
#include <linux/atmioc.h>
--- a/src/sigd/atmsigd.c
+++ b/src/sigd/atmsigd.c
-@@ -517,7 +517,7 @@ int main(int argc,char **argv)
+@@ -283,12 +283,11 @@ static void setup_signals(void)
+ /* ------------------------------- main ... ------------------------------- */
+
+
+-static void trace_on_exit(int status,void *dummy)
++static void trace_on_exit(void)
+ {
+ char path[PATH_MAX+1];
+ FILE *file;
+
+- if (!status) return;
+ if (!dump_dir) file = stderr;
+ else {
+ sprintf(path,"atmsigd.%d.trace.exit",getpid());
+@@ -517,7 +516,7 @@ int main(int argc,char **argv)
exit(0);
}
}