Skip to content

Commit 56a7c96

Browse files
committed
tcpdump.c: Fix a warning when HAVE_FORK and HAVE_VFORK are not defined
The warning was: tcpdump.c:226:13: warning: unused function 'child_cleanup' [-Wunused-function] static void child_cleanup(int);
1 parent ccee954 commit 56a7c96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tcpdump.c

+2
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ static int64_t parse_int64(const char *argname, const char *string,
225225
char **endp, int64_t minval, int64_t maxval, int base);
226226
static void (*setsignal (int sig, void (*func)(int)))(int);
227227
static void cleanup(int);
228+
#if defined(HAVE_FORK) || defined(HAVE_VFORK)
228229
static void child_cleanup(int);
230+
#endif
229231
static void print_version(FILE *);
230232
static void print_usage(FILE *);
231233

0 commit comments

Comments
 (0)