]> git.gsnw.org Git - fping.git/commitdiff
trivial: fix indenting
authorDavid Schweikert <david@schweikert.ch>
Mon, 21 May 2012 13:03:33 +0000 (15:03 +0200)
committerDavid Schweikert <david@schweikert.ch>
Mon, 21 May 2012 13:03:33 +0000 (15:03 +0200)
src/fping.c

index 3af42e68a776172a60e40c9f2398afa09dd9cc4f..3d185546266d0dde2d1cf73518d09c5a5493cf81 100644 (file)
@@ -2637,12 +2637,12 @@ int recvfrom_wto( int s, char *buf, int len, FPING_SOCKADDR *saddr, long timo )
 
 select_again:
     if(timo < 100000) {
-       to.tv_sec = 0;
-       to.tv_usec = timo * 10;
+        to.tv_sec = 0;
+        to.tv_usec = timo * 10;
     }
     else {
-       to.tv_sec = timo / 100000 ;
-       to.tv_usec = (timo % 100000) * 10 ;
+        to.tv_sec = timo / 100000 ;
+        to.tv_usec = (timo % 100000) * 10 ;
     }
 
     FD_ZERO( &readset );
@@ -2651,13 +2651,13 @@ select_again:
 
     nfound = select( s + 1, &readset, &writeset, NULL, &to );
     if(nfound < 0) {
-       if(errno == EINTR) {
-           /* interrupted system call: redo the select */
-           goto select_again;
-       }
-       else {
-           errno_crash_and_burn( "select" );
-       }
+        if(errno == EINTR) {
+            /* interrupted system call: redo the select */
+            goto select_again;
+        }
+        else {
+            errno_crash_and_burn( "select" );
+        }
     }
 
     if( nfound == 0 )