svn commit: r206159 - head/usr.sbin/services_mkdb
Hajimu UMEMOTO
ume at FreeBSD.org
Sun Apr 4 14:23:28 UTC 2010
Author: ume
Date: Sun Apr 4 14:23:28 2010
New Revision: 206159
URL: http://svn.freebsd.org/changeset/base/206159
Log:
Fix compilation error on 9-CURRENT.
Reported by: nyan
MFC after: 2 weeks
Modified:
head/usr.sbin/services_mkdb/services_mkdb.c
Modified: head/usr.sbin/services_mkdb/services_mkdb.c
==============================================================================
--- head/usr.sbin/services_mkdb/services_mkdb.c Sun Apr 4 13:17:05 2010 (r206158)
+++ head/usr.sbin/services_mkdb/services_mkdb.c Sun Apr 4 14:23:28 2010 (r206159)
@@ -282,11 +282,11 @@ parseservices(const char *fname, StringL
/* build list of aliases */
if (sl_find(s, name) == NULL) {
- char *p;
+ char *p2;
- if ((p = strdup(name)) == NULL)
+ if ((p2 = strdup(name)) == NULL)
err(1, "Cannot copy string");
- (void)sl_add(s, p);
+ (void)sl_add(s, p2);
}
if (aliases) {
@@ -294,11 +294,11 @@ parseservices(const char *fname, StringL
if (alias[0] == '\0')
continue;
if (sl_find(s, alias) == NULL) {
- char *p;
+ char *p2;
- if ((p = strdup(alias)) == NULL)
+ if ((p2 = strdup(alias)) == NULL)
err(1, "Cannot copy string");
- (void)sl_add(s, p);
+ (void)sl_add(s, p2);
}
}
}
More information about the svn-src-all
mailing list