Mercurial > hg > octave-lyh > gnulib-hg
changeset 425:4895c6a012c5
(eaccess_stat): Make statp and path arguments const.
(euidaccess): Make statp argument const. Use stat, not safe_stat.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 13 May 1995 13:05:35 +0000 |
parents | 11113a87edae |
children | defe7888e2f3 |
files | lib/euidaccess.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -103,9 +103,9 @@ int eaccess_stat (statp, mode, path) - struct stat *statp; + const struct stat *statp; int mode; - char *path; + const char *path; { int granted; @@ -158,7 +158,7 @@ int euidaccess (path, mode) - char *path; + const char *path; int mode; { struct stat stats; @@ -177,7 +177,7 @@ return access (path, mode); } - if (safe_stat (path, &stats)) + if (stat (path, &stats)) return -1; return eaccess_stat (&stats, mode, path);