From 9a3a39211d2624c319a58d7a9ca00f5c01c09a24 Mon Sep 17 00:00:00 2001 From: mmcc Date: Fri, 11 Dec 2015 00:20:04 +0000 Subject: Pass (char *)NULL rather than (char *)0 to execl and execlp. ok dtucker@ --- usr.bin/ssh/readpass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh/readpass.c') diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c index b5a86d782a7..9243a0e90c0 100644 --- a/usr.bin/ssh/readpass.c +++ b/usr.bin/ssh/readpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readpass.c,v 1.50 2014/02/02 03:44:31 djm Exp $ */ +/* $OpenBSD: readpass.c,v 1.51 2015/12/11 00:20:04 mmcc Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -73,7 +73,7 @@ ssh_askpass(char *askpass, const char *msg) close(p[0]); if (dup2(p[1], STDOUT_FILENO) < 0) fatal("ssh_askpass: dup2: %s", strerror(errno)); - execlp(askpass, askpass, msg, (char *) 0); + execlp(askpass, askpass, msg, (char *)NULL); fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); } close(p[1]); -- cgit v1.2.3-59-g8ed1b