removed some error lines printed to stderr. not used and they also have the potentia...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 May 2007 03:33:06 +0000 (03:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 May 2007 03:33:06 +0000 (03:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7390 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/utils/utils.c

index 6949344..3282b9f 100644 (file)
@@ -65,17 +65,14 @@ int set_fl( int fd, int flags ) {
        
        int val;
 
-       if( (val = fcntl( fd, F_GETFL, 0) ) < 0 ) {
-               fprintf(stderr, "fcntl F_GETFL error");
+       if( (val = fcntl( fd, F_GETFL, 0) ) < 0 ) 
                return -1;
-       }
 
        val |= flags;
 
-       if( fcntl( fd, F_SETFL, val ) < 0 ) {
-               fprintf(stderr, "fcntl F_SETFL error");
+       if( fcntl( fd, F_SETFL, val ) < 0 ) 
                return -1;
-       }
+
        return 0;
 }
        
@@ -83,17 +80,14 @@ int clr_fl( int fd, int flags ) {
        
        int val;
 
-       if( (val = fcntl( fd, F_GETFL, 0) ) < 0 ) {
-               fprintf(stderr, "fcntl F_GETFL error" );
+       if( (val = fcntl( fd, F_GETFL, 0) ) < 0 ) 
                return -1;
-       }
 
        val &= ~flags;
 
-       if( fcntl( fd, F_SETFL, val ) < 0 ) {
-               fprintf( stderr, "fcntl F_SETFL error" );
+       if( fcntl( fd, F_SETFL, val ) < 0 ) 
                return -1;
-       }
+
        return 0;
 }