diff --git a/mozilla/nsprpub/pr/tests/select2.c b/mozilla/nsprpub/pr/tests/select2.c index dfc29876a9b..86d9fe67e2e 100644 --- a/mozilla/nsprpub/pr/tests/select2.c +++ b/mozilla/nsprpub/pr/tests/select2.c @@ -164,11 +164,12 @@ static void PRSelectTest(void) if (debug_mode) printf("return from select is %d\n", rv); - if (PR_FD_ISSET(newSock, &rdset)) + if (PR_FD_ISSET(newSock, &rdset)) { if (debug_mode) printf("I can't believe it- the socket is ready okay!\n"); - else + } else { if (debug_mode) printf("Damn; the select test failed...\n"); else Test_Result (FAIL); + } strcpy(buf, "XXXXXXXXXX"); bytesRead = PR_Recv(newSock, buf, 10, 0, PR_INTERVAL_NO_TIMEOUT); @@ -245,12 +246,13 @@ static void NativeSelectTest(void) if (debug_mode) printf("return from select is %d\n", rv); - if (FD_ISSET(osfd, &rdset)) + if (FD_ISSET(osfd, &rdset)) { if (debug_mode) printf("I can't believe it- the socket is ready okay!\n"); - else + } else { if (debug_mode) printf("Damn; the select test failed...\n"); else Test_Result (FAIL); + } strcpy(buf, "XXXXXXXXXX"); bytesRead = PR_Recv(newSock, buf, 10, 0, PR_INTERVAL_NO_TIMEOUT);