Use the %t format modifier to print differences between
pointers. This fixes two format warnings on 64 bits archs which are fatal now that WFORMAT=0 has been removed. It doesn't fully fix the sh(1) build on 64 bits platforms though, there is still some quad_t issues that need to be fixed. Tested on: i386, sparc64
This commit is contained in:
parent
abffc58780
commit
b07890219d
@ -221,7 +221,7 @@ bgcmd(int argc, char **argv)
|
||||
continue;
|
||||
restartjob(jp);
|
||||
jp->foreground = 0;
|
||||
fmtstr(s, 64, "[%d] ", jp - jobtab + 1);
|
||||
fmtstr(s, 64, "[%td] ", jp - jobtab + 1);
|
||||
out1str(s);
|
||||
out1str(jp->ps[0].cmd);
|
||||
out1c('\n');
|
||||
|
@ -393,7 +393,7 @@ digit_convert(void)
|
||||
for (p = digit ; *p && *p != i ; p++);
|
||||
if (*p == '\0')
|
||||
p = digit;
|
||||
fprintf(cfile, " %d,\n", p - digit);
|
||||
fprintf(cfile, " %td,\n", p - digit);
|
||||
}
|
||||
fputs("};\n", cfile);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user