summaryrefslogtreecommitdiff
path: root/cppsetup.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 /cppsetup.c
parenta6a8afb0a82a175822077442f44865c75ab70ff1 (diff)
Increased constification
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'cppsetup.c')
-rw-r--r--cppsetup.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cppsetup.c b/cppsetup.c
index b598670..5824253 100644
--- a/cppsetup.c
+++ b/cppsetup.c
@@ -29,10 +29,11 @@ in this Software without prior written authorization from The Open Group.
#include "def.h"
#include "ifparser.h"
+
struct _parse_data {
struct filepointer *filep;
struct inclist *inc;
- char *filename;
+ const char *filename;
const char *line;
};
@@ -41,7 +42,7 @@ my_if_errors (IfParser *ip, const char *cp, const char *expecting)
{
struct _parse_data *pd = (struct _parse_data *) ip->data;
int lineno = pd->filep->f_line;
- char *filename = pd->filename;
+ const char *filename = pd->filename;
char prefix[300];
int prefixlen;
int i;
@@ -111,8 +112,8 @@ my_eval_variable (IfParser *ip, const char *var, int len)
}
int
-cppsetup(char *filename,
- char *line,
+cppsetup(const char *filename,
+ const char *line,
struct filepointer *filep,
struct inclist *inc)
{