]> granicus.if.org Git - sudo/commitdiff
eliminated a compiler warning
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 26 Mar 1995 04:23:43 +0000 (04:23 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 26 Mar 1995 04:23:43 +0000 (04:23 +0000)
sudo_realpath.c

index 2eef158fabde515acf91a9d90604def0b9fe9e71..519294b0eb925b49cb8ce80098673a6bb32878e8 100644 (file)
@@ -106,12 +106,13 @@ char * sudo_goodpath(path)
 
     /* make sure path describes an executable regular file */
     if (!err && S_ISREG(statbuf.st_mode) &&(statbuf.st_mode & 0000111))
-       return(path);
+       return((char *)path);
     else
        return(NULL);
 }
 
 
+
 #ifdef USE_REALPATH
 /******************************************************************
  *
@@ -226,6 +227,7 @@ char * sudo_realpath(old, new)
 }
 
 
+
 /******************************************************************
  *
  *  realpath_ret()