summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index e1f723123..b19ece836 100644
--- a/misc.c
+++ b/misc.c
@@ -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 */