- Make size_t printfs use unsigned type.

This commit is contained in:
Jamie Wilkinson 2003-02-13 00:45:11 +00:00
parent 759f9efeff
commit 39c967847d

View file

@ -527,7 +527,7 @@ size_t verify_fread(void * ptr, size_t size, size_t nitems, FILE * fp) {
ret = fread(ptr, size, nitems, fp); ret = fread(ptr, size, nitems, fp);
err = errno; err = errno;
if (ret != nitems) { if (ret != nitems) {
printf("verify_fread(...,%zd,%zd,...): return value: %zd\n", size, nitems, ret); printf("verify_fread(...,%zu,%zu,...): return value: %zu\n", size, nitems, ret);
if (ret == 0 && ferror(fp)) { if (ret == 0 && ferror(fp)) {
printf(" error: %s\n", strerror(err)); printf(" error: %s\n", strerror(err));
printf(" fileno=%d\n", fileno(fp)); printf(" fileno=%d\n", fileno(fp));
@ -545,7 +545,7 @@ size_t verify_fwrite(void * ptr, size_t size, size_t nitems, FILE * fp) {
ret = fwrite(ptr, size, nitems, fp); ret = fwrite(ptr, size, nitems, fp);
err = errno; err = errno;
if (ret != nitems) { if (ret != nitems) {
printf("verify_fwrite(...,%zd,%zd,...) = %zd\n", size, nitems, ret); printf("verify_fwrite(...,%zu,%zu,...) = %zu\n", size, nitems, ret);
if (ret == 0 && ferror(fp)) { if (ret == 0 && ferror(fp)) {
printf(" error: %s\n", strerror(err)); printf(" error: %s\n", strerror(err));
printf(" fileno=%d\n", fileno(fp)); printf(" fileno=%d\n", fileno(fp));