diff options
author | wtc%netscape.com <devnull@localhost> | 1999-05-04 21:53:10 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-05-04 21:53:10 +0000 |
commit | 0acf6ea3ccd884dfb1145e72a10e875072d3de97 (patch) | |
tree | dd842e63b1d47d2643cb9eab44016bea6d89902d | |
parent | 53680f4e4e01bcd6a61f13c7172fe6068aaed1f1 (diff) | |
download | nspr-hg-0acf6ea3ccd884dfb1145e72a10e875072d3de97.tar.gz |
Added curly braces around nested if's to achieve the if-else association
suggested by the identation. Thanks to Dorin-Ioan Marinca <dim@csti.fr>
for reporting the problem and Bert Driehuis
<bert_driehuis@nl.compuware.com> for suggesting the fix.
-rw-r--r-- | pr/tests/select2.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pr/tests/select2.c b/pr/tests/select2.c index dfc29876..86d9fe67 100644 --- a/pr/tests/select2.c +++ b/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); |