]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Work around a compiler warning pointed out by Bill Hoffman.
authorTim Kientzle <kientzle@gmail.com>
Fri, 13 Nov 2009 06:27:46 +0000 (01:27 -0500)
committerTim Kientzle <kientzle@gmail.com>
Fri, 13 Nov 2009 06:27:46 +0000 (01:27 -0500)
Also, clean up the whitespace here to match the BSD style
that's used in the rest of libarchive.

SVN-Revision: 1650

libarchive/archive_write_disk_set_standard_lookup.c

index 55373b8cf39598bbfbf2c0f6fdfac282105016db..e41d61b125656097e04b4fb0e872bea1c0025767 100644 (file)
@@ -230,8 +230,8 @@ hash(const char *p)
           as used by ELF for hashing function names. */
        unsigned g, h = 0;
        while (*p != '\0') {
-               h = ( h << 4 ) + *p++;
-               if (( g = h & 0xF0000000 )) {
+               h = (h << 4) + *p++;
+               if ((g = h & 0xF0000000) != 0) {
                        h ^= g >> 24;
                        h &= 0x0FFFFFFF;
                }