summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh-pkcs11-client.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-11 00:20:05 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-11 00:20:05 +0000
commitfc177cfcb5974a9c152085e46104bfa5dbdad8fb (patch)
treed443ddbbe9357dae7ccf95df52ec49507704d80f /usr.bin/ssh/ssh-pkcs11-client.c
parentf42f8a3b148697047a0f970ea3e15ce348160d28 (diff)
Pass (char *)NULL rather than (char *)0 to execl and execlp.
ok dtucker@
Diffstat (limited to 'usr.bin/ssh/ssh-pkcs11-client.c')
-rw-r--r--usr.bin/ssh/ssh-pkcs11-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-pkcs11-client.c b/usr.bin/ssh/ssh-pkcs11-client.c
index 2dc5f17a7b7..9317cae3b7d 100644
--- a/usr.bin/ssh/ssh-pkcs11-client.c
+++ b/usr.bin/ssh/ssh-pkcs11-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11-client.c,v 1.5 2014/06/24 01:13:21 djm Exp $ */
+/* $OpenBSD: ssh-pkcs11-client.c,v 1.6 2015/12/11 00:20:04 mmcc Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
*
@@ -167,7 +167,7 @@ pkcs11_start_helper(void)
close(pair[0]);
close(pair[1]);
execlp(_PATH_SSH_PKCS11_HELPER, _PATH_SSH_PKCS11_HELPER,
- (char *) 0);
+ (char *)NULL);
fprintf(stderr, "exec: %s: %s\n", _PATH_SSH_PKCS11_HELPER,
strerror(errno));
_exit(1);