pkgsrc-ng/net/iperf3/patches/patch-src_units.c
2016-01-21 23:40:00 +01:00

16 lines
362 B
C

$NetBSD: patch-src_units.c,v 1.1 2015/02/02 12:25:20 he Exp $
Avoid warning for using toupper() with signed chars.
--- src/units.c.orig 2015-01-09 17:44:11.000000000 +0000
+++ src/units.c
@@ -259,7 +259,7 @@ extern "C"
{
inNum *= 8;
}
- switch (toupper(inFormat))
+ switch (toupper((u_char)inFormat))
{
case 'B':
conv = UNIT_CONV;