summaryrefslogtreecommitdiff
path: root/include.c
diff options
context:
space:
mode:
Diffstat (limited to 'include.c')
-rw-r--r--include.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/include.c b/include.c
index 65ce783..53935c5 100644
--- a/include.c
+++ b/include.c
@@ -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;