diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-24 18:22:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-24 19:52:16 -0700 |
commit | c7c7197d265a299c82c6629fba867730aad81375 (patch) | |
tree | fc7bfa6dce99476f888b378a7ebda78d6c6f873e /include.c | |
parent | a6a8afb0a82a175822077442f44865c75ab70ff1 (diff) |
Increased constification
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'include.c')
-rw-r--r-- | include.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -31,14 +31,14 @@ in this Software without prior written authorization from The Open Group. extern struct inclist inclist[ MAXFILES ], *inclistp, *inclistnext; -extern char *includedirs[ ], - **includedirsnext; +extern const char *includedirs[ ], + **includedirsnext; extern char *notdotdot[ ]; extern boolean show_where_not; extern boolean warn_multiple; static boolean -isdot(char *p) +isdot(const char *p) { if(p && *p++ == '.' && *p++ == '\0') return(TRUE); @@ -46,7 +46,7 @@ isdot(char *p) } static boolean -isdotdot(char *p) +isdotdot(const char *p) { if(p && *p++ == '.' && *p++ == '.' && *p++ == '\0') return(TRUE); @@ -54,7 +54,7 @@ isdotdot(char *p) } static boolean -issymbolic(char *dir, char *component) +issymbolic(const char *dir, const char *component) { #ifdef S_IFLNK struct stat st; @@ -153,7 +153,7 @@ remove_dotdot(char *path) * Add an include file to the list of those included by 'file'. */ struct inclist * -newinclude(char *newfile, char *incstring) +newinclude(const char *newfile, const char *incstring) { register struct inclist *ip; @@ -235,10 +235,10 @@ inc_clean (void) } struct inclist * -inc_path(char *file, char *include, int type) +inc_path(const char *file, const char *include, int type) { static char path[ BUFSIZ ]; - register char **pp, *p; + register const char **pp, *p; register struct inclist *ip; struct stat st; |