summaryrefslogtreecommitdiff
path: root/pr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-03-24 18:22:37 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-03-24 19:52:16 -0700
commitc7c7197d265a299c82c6629fba867730aad81375 (patch)
treefc7bfa6dce99476f888b378a7ebda78d6c6f873e /pr.c
parenta6a8afb0a82a175822077442f44865c75ab70ff1 (diff)
downloadxorg-util-makedepend-c7c7197d265a299c82c6629fba867730aad81375.tar.gz
Increased constification
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'pr.c')
-rw-r--r--pr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pr.c b/pr.c
index 5d0e1c4..dd9ee6e 100644
--- a/pr.c
+++ b/pr.c
@@ -39,7 +39,7 @@ extern boolean show_where_not;
void
add_include(struct filepointer *filep, struct inclist *file,
- struct inclist *file_red, char *include, int type,
+ struct inclist *file_red, const char *include, int type,
boolean failOK)
{
register struct inclist *newfile;
@@ -75,9 +75,9 @@ add_include(struct filepointer *filep, struct inclist *file,
}
static void
-pr(struct inclist *ip, char *file, char *base)
+pr(struct inclist *ip, const char *file, const char *base)
{
- static char *lastfile;
+ static const char *lastfile;
static int current_len;
register int len, i;
char buf[ BUFSIZ ];
@@ -110,7 +110,7 @@ pr(struct inclist *ip, char *file, char *base)
}
void
-recursive_pr_include(struct inclist *head, char *file, char *base)
+recursive_pr_include(struct inclist *head, const char *file, const char *base)
{
int i;