]> The Tcpdump Group git mirrors - libpcap/commitdiff
Clean up output.
authorGuy Harris <[email protected]>
Sat, 20 Jan 2018 09:28:41 +0000 (01:28 -0800)
committerGuy Harris <[email protected]>
Sat, 20 Jan 2018 09:28:41 +0000 (01:28 -0800)
tests/selpolltest.c

index e4e33185456b2aeee6afac91d0fcdea18a9fb58b..3e48447a3901e0dc94f34fb42491b5c8eeaf4c76 100644 (file)
@@ -216,16 +216,16 @@ main(int argc, char **argv)
                                    strerror(errno));
                        } else {
                                if (status == 0)
-                                       printf("Select timed out");
+                                       printf("Select timed out");
                                else
-                                       printf("Select returned a descriptor");
+                                       printf("Select returned a descriptor");
                                if (selectable_fd == -1)
-                                       printf("couldn't do select() on FD\n");
+                                       printf("\n");
                                else {
                                        if (FD_ISSET(selectable_fd, &setread))
-                                               printf("readable, ");
+                                               printf("readable, ");
                                        else
-                                               printf("not readable, ");
+                                               printf("not readable, ");
                                        if (FD_ISSET(selectable_fd, &setexcept))
                                                printf("exceptional condition\n");
                                        else