avoid one more ctype vs. sign-extension problem

* src/util.c (TOLOWER): Also convert tolower argument.
This commit is contained in:
Jim Meyering 2008-05-09 08:09:48 +00:00
parent 6d132b546d
commit b8111adf35
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Fri May 9 10:01:34 EST 2008 Jim Meyering <meyering@redhat.com>
avoid one more ctype vs. sign-extension problem
* src/util.c (TOLOWER): Also convert tolower argument.
add "const" and "static" attributes to file-scoped globals
* src/storage_backend_fs.c (fileTypeInfo): Add "static" and two
"const" attributes.

View File

@ -57,7 +57,8 @@
#define MAX_ERROR_LEN 1024
#define TOLOWER(Ch) (isupper (to_uchar(Ch)) ? tolower (Ch) : (Ch))
#define TOLOWER(Ch) (isupper (to_uchar(Ch)) \
? tolower (to_uchar (Ch)) : (to_uchar (Ch)))
#define virLog(msg...) fprintf(stderr, msg)