mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 10:48:03 -04:00
16 lines
362 B
C
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;
|