Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/tcpdump/dist toupper() takes an unsigned char.
details: https://anonhg.NetBSD.org/src/rev/9a1efb31edbe
branches: trunk
changeset: 821121:9a1efb31edbe
user: martin <martin%NetBSD.org@localhost>
date: Wed Jan 25 08:14:07 2017 +0000
description:
toupper() takes an unsigned char.
diffstat:
external/bsd/tcpdump/dist/util-print.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r e39683bbd7e6 -r 9a1efb31edbe external/bsd/tcpdump/dist/util-print.c
--- a/external/bsd/tcpdump/dist/util-print.c Wed Jan 25 07:49:23 2017 +0000
+++ b/external/bsd/tcpdump/dist/util-print.c Wed Jan 25 08:14:07 2017 +0000
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: util-print.c,v 1.2 2017/01/24 23:29:14 christos Exp $");
+__RCSID("$NetBSD: util-print.c,v 1.3 2017/01/25 08:14:07 martin Exp $");
#endif
#ifdef HAVE_CONFIG_H
@@ -788,7 +788,7 @@
/* Capitalize the protocol name */
for (pnp = protoname; *pnp != '\0'; pnp++)
- ND_PRINT((ndo, "%c", toupper(*pnp)));
+ ND_PRINT((ndo, "%c", toupper((unsigned char)*pnp)));
if (is_reqresp) {
/*
Home |
Main Index |
Thread Index |
Old Index