mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-01 14:22:27 +00:00
Correct -Wformat-pedantic warnings
Many of the warnings were newly visible after the DBPRINT macro was modified, but the pedantic warnings also caught existing printf family usage which was not strictly correct. Mostly replacing 0x%x with %p for pointers, adding (void *) for those and other pointers, %td for ptrdiff_t, but also changing some function parameters from UNSIGNED (uintptr_t) to int where that was the more appropriate type.
This commit is contained in:
@@ -270,7 +270,7 @@ int fork_Unix() {
|
||||
perror("Error reading packet by slave");
|
||||
exit(0);
|
||||
} else if (len != 6) {
|
||||
DBPRINT(("Input packet wrong length: %d", len));
|
||||
DBPRINT(("Input packet wrong length: %zd", len));
|
||||
exit(0);
|
||||
}
|
||||
slot = IOBuf[3];
|
||||
@@ -420,7 +420,7 @@ int fork_Unix() {
|
||||
IOBuf[1] = pid & 0xFF;
|
||||
IOBuf[0] = (pid >> 8) & 0xFF;
|
||||
}
|
||||
DBPRINT(("wait3 returned pid = %d.\n", pid));
|
||||
DBPRINT(("wait3 returned pid = %ld.\n", (long)pid));
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user