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/vi/ex/ex_argv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/vi/ex/ex_argv.c') diff --git a/usr.bin/vi/ex/ex_argv.c b/usr.bin/vi/ex/ex_argv.c index e0b0f951529..1058ec05d09 100644 --- a/usr.bin/vi/ex/ex_argv.c +++ b/usr.bin/vi/ex/ex_argv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ex_argv.c,v 1.7 2001/01/29 01:58:41 niklas Exp $ */ +/* $OpenBSD: ex_argv.c,v 1.8 2001/07/09 07:04:57 deraadt Exp $ */ /*- * Copyright (c) 1993, 1994 @@ -691,7 +691,7 @@ err: if (ifp != NULL) * XXX * Assume that all shells have -c. */ - execl(sh_path, sh, "-c", bp, NULL); + execl(sh_path, sh, "-c", bp, (char *)NULL); msgq_str(sp, M_SYSERR, sh_path, "118|Error: execl: %s"); _exit(127); default: /* Parent. */ -- cgit v1.2.3