summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/getproto.c
diff options
context:
space:
mode:
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;