From e593d30de08f265ebe6eff907d79b492e047bd5c Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Tue, 4 May 1999 21:53:10 +0000 Subject: [PATCH] Added curly braces around nested if's to achieve the if-else association suggested by the identation. Thanks to Dorin-Ioan Marinca for reporting the problem and Bert Driehuis for suggesting the fix. git-svn-id: svn://10.0.0.236/trunk@30222 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/pr/tests/select2.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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);