Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist NUL != NULL, so use the correct lit...



details:   https://anonhg.NetBSD.org/src/rev/6586c95e8cef
branches:  trunk
changeset: 791446:6586c95e8cef
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Nov 18 19:55:29 2013 +0000

description:
NUL != NULL, so use the correct literal

diffstat:

 external/bsd/dhcpcd/dist/script.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 7feaadc07e7b -r 6586c95e8cef external/bsd/dhcpcd/dist/script.c
--- a/external/bsd/dhcpcd/dist/script.c Mon Nov 18 19:23:35 2013 +0000
+++ b/external/bsd/dhcpcd/dist/script.c Mon Nov 18 19:55:29 2013 +0000
@@ -1,5 +1,5 @@
 #include <sys/cdefs.h>
- __RCSID("$NetBSD: script.c,v 1.1.1.2 2013/09/20 10:51:29 roy Exp $");
+ __RCSID("$NetBSD: script.c,v 1.2 2013/11/18 19:55:29 joerg Exp $");
 
 /*
  * dhcpcd - DHCP client daemon
@@ -424,7 +424,7 @@
                }
                elen += e;
        }
-       env[elen] = '\0';
+       env[elen] = NULL;
 
        *argv = env;
        return elen;
@@ -556,7 +556,7 @@
                        goto out;
                }
        }
-       env[++elen] = '\0';
+       env[++elen] = NULL;
 
        pid = exec_script(argv, env);
        if (pid == -1)



Home | Main Index | Thread Index | Old Index