From 5a79e1f048bd5ad328af146c6002baad87fd4f25 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 13 May 1995 13:05:35 +0000 Subject: [PATCH] (eaccess_stat): Make statp and path arguments const. (euidaccess): Make statp argument const. Use stat, not safe_stat. --- lib/euidaccess.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 499040c5b..598b87522 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -103,9 +103,9 @@ static int have_ids = 0; 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 @@ eaccess_stat (statp, mode, path) int euidaccess (path, mode) - char *path; + const char *path; int mode; { struct stat stats; @@ -177,7 +177,7 @@ euidaccess (path, mode) return access (path, mode); } - if (safe_stat (path, &stats)) + if (stat (path, &stats)) return -1; return eaccess_stat (&stats, mode, path); -- 2.11.0