From 579d53d4aa0adbf1e29b46b632722f419b5d231b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 9 Jun 2009 15:05:28 -0700 Subject: [PATCH] execlp() is a varargs function, so if NULL is defined as 0, the compiler doesn't know that it needs to be converted to a null pointer constant; add an explicit cast. --- tcpdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpdump.c b/tcpdump.c index c915ae47..c7515b4d 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -1340,7 +1340,7 @@ compress_savefile(const char *filename) #else setpriority(PRIO_PROCESS, 0, 19); #endif - if (execlp(zflag, zflag, filename, NULL) == -1) + if (execlp(zflag, zflag, filename, (char *)NULL) == -1) fprintf(stderr, "compress_savefile:execlp(%s, %s): %s\n", zflag, -- 2.39.5