]> xenbits.xensource.com Git - libvirt.git/commitdiff
avoid one more ctype vs. sign-extension problem
authorJim Meyering <meyering@redhat.com>
Fri, 9 May 2008 08:09:48 +0000 (08:09 +0000)
committerJim Meyering <meyering@redhat.com>
Fri, 9 May 2008 08:09:48 +0000 (08:09 +0000)
* src/util.c (TOLOWER): Also convert tolower argument.

ChangeLog
src/util.c

index f993421cba4a00580322a02d5bb3f1fb4159a732..7e576be89816c9e524790802889185436bf653fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 8f3cef9aa94588c8cfa62a15188b93f595c9f414..4cef6d23c76ca8e81024623eb8a13c74b2bad419 100644 (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)