summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2003-10-31 22:12:09 +0000
committergshapiro <gshapiro@FreeBSD.org>2003-10-31 22:12:09 +0000
commita29eaca9691a5d58dfe01de83bb7296341727413 (patch)
treeece63764c9d7afdda6ad36bc9c6faff03e0b5fda /contrib
parent57bbc7c310bf0c601c191f252d391e590dfa27a7 (diff)
downloadFreeBSD-src-a29eaca9691a5d58dfe01de83bb7296341727413.zip
FreeBSD-src-a29eaca9691a5d58dfe01de83bb7296341727413.tar.gz
Cast the NULL to a pointer type for 64 bit architectures
Submitted by: harti MFC after: 4 days
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sendmail/smrsh/smrsh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/sendmail/smrsh/smrsh.c b/contrib/sendmail/smrsh/smrsh.c
index 9a9bc21..a37613e 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 <sm/gen.h>
@@ -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));
OpenPOWER on IntegriCloud