diff options
author | 2010-05-21 05:00:36 +0000 | |
---|---|---|
committer | 2010-05-21 05:00:36 +0000 | |
commit | 0d0b61f6c6ed5bb2ee4e19414a195971c1c4528c (patch) | |
tree | 816897724e31a4e60598ea88c0a00a65ed01d220 | |
parent | Move the permit-* options to the non-critical "extensions" field for v01 (diff) | |
download | wireguard-openbsd-0d0b61f6c6ed5bb2ee4e19414a195971c1c4528c.tar.xz wireguard-openbsd-0d0b61f6c6ed5bb2ee4e19414a195971c1c4528c.zip |
colon() returns char*, so s/return (0)/return NULL/
-rw-r--r-- | usr.bin/ssh/misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c index 777adddd223..11ee7f16674 100644 --- a/usr.bin/ssh/misc.c +++ b/usr.bin/ssh/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.75 2010/01/09 23:04:13 dtucker Exp $ */ +/* $OpenBSD: misc.c,v 1.76 2010/05/21 05:00:36 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2005,2006 Damien Miller. All rights reserved. @@ -412,7 +412,7 @@ colon(char *cp) int flag = 0; if (*cp == ':') /* Leading colon is part of file name. */ - return (0); + return NULL; if (*cp == '[') flag = 1; @@ -424,9 +424,9 @@ colon(char *cp) if (*cp == ':' && !flag) return (cp); if (*cp == '/') - return (0); + return NULL; } - return (0); + return NULL; } /* function to assist building execv() arguments */ |