diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2010-05-21 05:00:37 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2010-05-21 05:00:37 +0000 |
commit | 229059405b6e40b6c2a1d3a46c7849d0a3edc146 (patch) | |
tree | db7e14d25971f12300c771cc8ecbc5d9360b23c3 /usr.bin | |
parent | 54fcd799755b01850acb825194835225889fd635 (diff) |
colon() returns char*, so s/return (0)/return NULL/
Diffstat (limited to 'usr.bin')
-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 */ |