Module Name: src
Committed By: joerg
Date: Mon Nov 18 19:55:29 UTC 2013
Modified Files:
src/external/bsd/dhcpcd/dist: script.c
Log Message:
NUL != NULL, so use the correct literal
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 src/external/bsd/dhcpcd/dist/script.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/script.c
diff -u src/external/bsd/dhcpcd/dist/script.c:1.1.1.2 src/external/bsd/dhcpcd/dist/script.c:1.2
--- src/external/bsd/dhcpcd/dist/script.c:1.1.1.2 Fri Sep 20 10:51:29 2013
+++ src/external/bsd/dhcpcd/dist/script.c Mon Nov 18 19:55:29 2013
@@ -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 @@ dumplease:
}
elen += e;
}
- env[elen] = '\0';
+ env[elen] = NULL;
*argv = env;
return elen;
@@ -556,7 +556,7 @@ script_runreason(const struct interface
goto out;
}
}
- env[++elen] = '\0';
+ env[++elen] = NULL;
pid = exec_script(argv, env);
if (pid == -1)