From: Jim Meyering Date: Sun, 7 Jan 1996 04:08:44 +0000 (+0000) Subject: (print_element): Change type of argument from char X-Git-Tag: TEXTUTILS-1_14~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13751495a14071f5a8e868985cd452c47775249f;p=thirdparty%2Fcoreutils.git (print_element): Change type of argument from char to int to avoid potential promotion problem. --- diff --git a/src/uname.c b/src/uname.c index 1823e5dc15..ca1caa0c42 100644 --- a/src/uname.c +++ b/src/uname.c @@ -38,7 +38,7 @@ #include "version.h" #include "error.h" -static void print_element __P ((unsigned char mask, char *element)); +static void print_element __P ((unsigned int mask, char *element)); static void usage __P ((int status)); /* Values that are bitwise or'd into `toprint'. */ @@ -160,7 +160,7 @@ main (int argc, char **argv) be printed, in which case print a newline. */ static void -print_element (unsigned char mask, char *element) +print_element (unsigned int mask, char *element) { if (toprint & mask) {