Issue #1338 - Part 1: Update NSPR to 4.24

This commit is contained in:
wolfbeast 2020-01-02 21:01:38 +01:00 • committed by Roy Tam
commit 1a92143e68
454 changed files with 42944 additions and 48647 deletions

View file

@ -39,7 +39,9 @@ int main(int argc, char **argv)
prstderr,"tcp is usually 6, but is %d on this machine\n",
proto.p_num);
}
else PR_fprintf(prstderr, "tcp is protocol number %d\n", proto.p_num);
else {
PR_fprintf(prstderr, "tcp is protocol number %d\n", proto.p_num);
}
rv = PR_GetProtoByName("udp", buf, sizeof(buf), &proto);
if (PR_FAILURE == rv) {
@ -51,7 +53,9 @@ int main(int argc, char **argv)
prstderr, "udp is usually 17, but is %d on this machine\n",
proto.p_num);
}
else PR_fprintf(prstderr, "udp is protocol number %d\n", proto.p_num);
else {
PR_fprintf(prstderr, "udp is protocol number %d\n", proto.p_num);
}
rv = PR_GetProtoByNumber(6, buf, sizeof(buf), &proto);
if (PR_FAILURE == rv) {
@ -63,7 +67,9 @@ int main(int argc, char **argv)
prstderr, "Protocol number 6 is usually tcp, but is %s"
" on this platform\n", proto.p_name);
}
else PR_fprintf(prstderr, "Protocol number 6 is %s\n", proto.p_name);
else {
PR_fprintf(prstderr, "Protocol number 6 is %s\n", proto.p_name);
}
rv = PR_GetProtoByNumber(17, buf, sizeof(buf), &proto);
if (PR_FAILURE == rv) {
@ -75,7 +81,9 @@ int main(int argc, char **argv)
prstderr, "Protocol number 17 is usually udp, but is %s"
" on this platform\n", proto.p_name);
}
else PR_fprintf(prstderr, "Protocol number 17 is %s\n", proto.p_name);
else {
PR_fprintf(prstderr, "Protocol number 17 is %s\n", proto.p_name);
}
PR_fprintf(prstderr, (failed) ? "FAILED\n" : "PASSED\n");
return (failed) ? 1 : 0;