mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-11-10 07:12:01 +00:00
- Make size_t printfs use unsigned type.
This commit is contained in:
parent
759f9efeff
commit
39c967847d
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue