Print this page
8485 Remove set but unused variables in usr/src/cmd

@@ -1,6 +1,7 @@
 /*
+ * Copyright 2017 Gary Mills
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /* 

@@ -358,11 +359,10 @@
 static int
 berval_from_file( const char *path, struct berval *bvp, int reporterrs )
 {
     FILE        *fp;
     long        rlen;
-    int         eof;
 #if defined( XP_WIN32 )
     char        mode[20] = "r+b";
 #else
     char        mode[20] = "r";
 #endif

@@ -395,11 +395,10 @@
         fclose( fp );
         return( LDAPTOOL_FILEURL_FILEIOERROR );
     }
 
     rlen = fread( bvp->bv_val, 1, bvp->bv_len, fp );
-    eof = feof( fp );
     fclose( fp );
 
     if ( rlen != (long)bvp->bv_len ) {
         if ( reporterrs ) perror( path );
         free( bvp->bv_val );