From cc10c0ec0242d29606226bab54b4b13c711aaa36 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 26 Mar 1995 04:23:43 +0000 Subject: [PATCH] eliminated a compiler warning --- sudo_realpath.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sudo_realpath.c b/sudo_realpath.c index 2eef158fa..519294b0e 100644 --- a/sudo_realpath.c +++ b/sudo_realpath.c @@ -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() -- 2.40.0