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/b22eaf40fa37
branches: trunk
changeset: 350870:b22eaf40fa37
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 9a92f0b3690b -r b22eaf40fa37 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