summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/getproto.c
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
commitf7d30133221896638f7bf4f66c504255c4b14f48 (patch)
tree5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/tests/getproto.c
parent26b297510a11758727438df4669357a2a2bc42ce (diff)
downloadUXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.gz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.lz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.xz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.zip
Issue #1338 - Part 1: Update NSPR to 4.24
Diffstat (limited to 'nsprpub/pr/tests/getproto.c')
-rw-r--r--nsprpub/pr/tests/getproto.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/nsprpub/pr/tests/getproto.c b/nsprpub/pr/tests/getproto.c
index f63a4dfd0..1a33b1f25 100644
--- a/nsprpub/pr/tests/getproto.c
+++ b/nsprpub/pr/tests/getproto.c
@@ -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;