From 3fdb39034f4cf21a28aeb38456614690dc158fde Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Fri, 31 Oct 2003 22:12:09 +0000 Subject: Cast the NULL to a pointer type for 64 bit architectures Submitted by: harti MFC after: 4 days --- contrib/sendmail/smrsh/smrsh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'contrib/sendmail') diff --git a/contrib/sendmail/smrsh/smrsh.c b/contrib/sendmail/smrsh/smrsh.c index 9a9bc213a449..a37613ea512b 100644 --- a/contrib/sendmail/smrsh/smrsh.c +++ b/contrib/sendmail/smrsh/smrsh.c @@ -9,6 +9,7 @@ * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * + * $FreeBSD$ */ #include @@ -423,7 +424,8 @@ main(argc, argv) #ifdef DEBUG (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, "%s\n", newcmdbuf); #endif /* DEBUG */ - (void) execle("/bin/sh", "/bin/sh", "-c", newcmdbuf, NULL, newenv); + (void) execle("/bin/sh", "/bin/sh", "-c", newcmdbuf, + (char *)NULL, newenv); save_errno = errno; #ifndef DEBUG syslog(LOG_CRIT, "Cannot exec /bin/sh: %s", sm_errstring(errno)); -- cgit v1.3