Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config appease gcc-4.5.4
details: https://anonhg.NetBSD.org/src/rev/5675bce4cc8a
branches: trunk
changeset: 335748:5675bce4cc8a
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 22 20:01:22 2015 +0000
description:
appease gcc-4.5.4
diffstat:
usr.bin/config/main.c | 8 ++++----
usr.bin/config/mkheaders.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (56 lines):
diff -r c718459c0d87 -r 5675bce4cc8a usr.bin/config/main.c
--- a/usr.bin/config/main.c Thu Jan 22 19:50:21 2015 +0000
+++ b/usr.bin/config/main.c Thu Jan 22 20:01:22 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.73 2014/11/06 11:40:32 uebayasi Exp $ */
+/* $NetBSD: main.c,v 1.74 2015/01/22 20:01:22 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.73 2014/11/06 11:40:32 uebayasi Exp $");
+__RCSID("$NetBSD: main.c,v 1.74 2015/01/22 20:01:22 christos Exp $");
#ifndef MAKE_BOOTSTRAP
#include <sys/cdefs.h>
@@ -1557,8 +1557,8 @@
char c;
for (n = name, p = low; (c = *n) != '\0'; n++)
- *p++ = isupper((u_char)c) ? (char)tolower((u_char)c) : c;
- *p = 0;
+ *p++ = (char)(isupper((u_char)c) ? tolower((u_char)c) : c);
+ *p = '\0';
return (intern(low));
}
diff -r c718459c0d87 -r 5675bce4cc8a usr.bin/config/mkheaders.c
--- a/usr.bin/config/mkheaders.c Thu Jan 22 19:50:21 2015 +0000
+++ b/usr.bin/config/mkheaders.c Thu Jan 22 20:01:22 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkheaders.c,v 1.25 2014/11/04 23:00:35 joerg Exp $ */
+/* $NetBSD: mkheaders.c,v 1.26 2015/01/22 20:01:22 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: mkheaders.c,v 1.25 2014/11/04 23:00:35 joerg Exp $");
+__RCSID("$NetBSD: mkheaders.c,v 1.26 2015/01/22 20:01:22 christos Exp $");
#include <sys/param.h>
#include <ctype.h>
@@ -533,7 +533,7 @@
dst = buf;
*dst++ = 'N';
while ((c = *src++) != 0)
- *dst++ = islower((u_char)c) ? (char)toupper((u_char)c) : c;
+ *dst++ = (char)(islower((u_char)c) ? toupper((u_char)c) : c);
*dst = 0;
return (buf);
}
Home |
Main Index |
Thread Index |
Old Index