Quiet a compiler warning on Solaris.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 9 Apr 2014 22:33:28 +0000 (16:33 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 9 Apr 2014 22:33:28 +0000 (16:33 -0600)
common/regress/atofoo/atofoo_test.c

index 512221c2a2299fc1adbc6b9a2f1619be01db6dc2..3ec9853cbdb1cd402daea9676bc345c375332bd3 100644 (file)
@@ -155,7 +155,8 @@ test_atomode(int *ntests)
                errors++;
            }
        } else if (mode != d->mode) {
-           warningx_nodebug("FAIL: %s != 0%o", d->mode_str, d->mode);
+           warningx_nodebug("FAIL: %s != 0%o", d->mode_str,
+               (unsigned int) d->mode);
            errors++;
        }
     }