diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | misc.c | 8 |
2 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20100626 | ||
2 | - (djm) OpenBSD CVS Sync | ||
3 | - djm@cvs.openbsd.org 2010/05/21 05:00:36 | ||
4 | [misc.c] | ||
5 | colon() returns char*, so s/return (0)/return NULL/ | ||
6 | |||
1 | 20100622 | 7 | 20100622 |
2 | - (djm) [loginrec.c] crank LINFO_NAMESIZE (username length) to 512 | 8 | - (djm) [loginrec.c] crank LINFO_NAMESIZE (username length) to 512 |
3 | bz#1579; ok dtucker | 9 | bz#1579; ok dtucker |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.c,v 1.75 2010/01/09 23:04:13 dtucker Exp $ */ | 1 | /* $OpenBSD: misc.c,v 1.76 2010/05/21 05:00:36 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2005,2006 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2005,2006 Damien Miller. All rights reserved. |
@@ -425,7 +425,7 @@ colon(char *cp) | |||
425 | int flag = 0; | 425 | int flag = 0; |
426 | 426 | ||
427 | if (*cp == ':') /* Leading colon is part of file name. */ | 427 | if (*cp == ':') /* Leading colon is part of file name. */ |
428 | return (0); | 428 | return NULL; |
429 | if (*cp == '[') | 429 | if (*cp == '[') |
430 | flag = 1; | 430 | flag = 1; |
431 | 431 | ||
@@ -437,9 +437,9 @@ colon(char *cp) | |||
437 | if (*cp == ':' && !flag) | 437 | if (*cp == ':' && !flag) |
438 | return (cp); | 438 | return (cp); |
439 | if (*cp == '/') | 439 | if (*cp == '/') |
440 | return (0); | 440 | return NULL; |
441 | } | 441 | } |
442 | return (0); | 442 | return NULL; |
443 | } | 443 | } |
444 | 444 | ||
445 | /* function to assist building execv() arguments */ | 445 | /* function to assist building execv() arguments */ |