From e794dc8249450a31cf35cb2aa88a33779325b689 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 9 Jul 2001 07:05:10 +0000 Subject: correct type on last arg to execl(); nordin@cse.ogi.edu --- usr.bin/tn3270/sys_curses/system.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/tn3270/sys_curses') diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c index 800913deaba..c22bf7de8f6 100644 --- a/usr.bin/tn3270/sys_curses/system.c +++ b/usr.bin/tn3270/sys_curses/system.c @@ -1,4 +1,4 @@ -/* $OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $ */ +/* $OpenBSD: system.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: system.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $"; #endif /* not lint */ #include @@ -738,7 +738,7 @@ char *argv[]; extern char *getenv(); cmdname = getenv("SHELL"); - execlp(cmdname, cmdname, 0); + execlp(cmdname, cmdname, (char *)NULL); perror("Exec'ing new shell...\n"); _exit(1); } else { -- cgit v1.2.3