diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 16:01:15 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 16:03:02 +0200 |
commit | bfe071e3ac625e8546de6444e89adc2a90655a63 (patch) | |
tree | f5c9d72c5b1936385b9de34e78deadcd8c9d6655 | |
parent | 81c4437464e58bf46549923432128c6cbe203f4c (diff) |
axwrapper: Remove unused code resulting in warning.
gcc -g -O2 -Wall -o axspawn axspawn.o access.o md5.o -lax25 -lutil
gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/us
r/local/var/ax25/"\" -g -O2 -Wall -MT axwrapper.o -MD -MP -MF .deps/axwrapper.Tpo -c -o axwrapper.o axwrapper.c
axwrapper.c:49:13: warning: ‘sigchld_handler’ defined but not used [-Wunused-function]
static void sigchld_handler(int sig)
^~~~~~~~~~~~~~~
Since 71918b7d4e95 ("axwrapper: Mark functions sigchld_handler and
convert_{cr_lf,lf_cr} static.") made sigchld_handler() static gcc was
warning about the function being unused. No point in keeping this around;
SIGCHLD is perfectly fine.
Fixes: 71918b7d4e95 ("axwrapper: Mark functions sigchld_handler and convert_{cr_lf,lf_cr} static.")
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | ax25/axwrapper.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ax25/axwrapper.c b/ax25/axwrapper.c index ad2995a..e9dcff4 100644 --- a/ax25/axwrapper.c +++ b/ax25/axwrapper.c @@ -46,12 +46,6 @@ #define PERROR(s) fprintf(stderr, "*** %s: %s\r", (s), strerror(errno)) #define USAGE() fputs("Usage: axwrapper [-p <paclen>] <filename> <argv[0]> ...\r", stderr) -static void sigchld_handler(int sig) -{ - /* fprintf(stderr, "Caught SIGCHLD, exiting...\r"); */ - exit(0); -} - static void convert_cr_lf(unsigned char *buf, int len) { while (len-- > 0) { @@ -118,7 +112,6 @@ int main(int argc, char **argv) exit(1); } - /* signal(SIGCHLD, sigchld_handler); */ signal(SIGCHLD, SIG_IGN); pid = fork(); |