summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 00:24:30 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 00:32:25 -0700
commite84f2e87222879ca667c1fb3d1cb3236a1159d12 (patch)
tree811a62b78ef6ba09d9781fc3dd1159cb079b55b4 /src/parse.c
parentb16ce9773e4da5897ab546de85e48a3ea58d0e00 (diff)
Constification cleanup - fix dozens of gcc warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/parse.c b/src/parse.c
index 26f5ebd..ebdb9c1 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -83,7 +83,7 @@ static unsigned char overflowbuff[20]; /* really only need one */
static int overflowlen;
static unsigned char **stringListSource, *currentString;
-static int doparse ( int (*ifunc)(void), char *srctypename, char *srcname );
+static int doparse ( int (*ifunc)(void), const char *srctypename, const char *srcname );
static int twmFileInput ( void );
static int twmStringListInput ( void );
static int ParseUsePPosition ( char *s );
@@ -99,7 +99,8 @@ int (*twmInputFunc)(void);
* parse the .twmrc file
* \param filename the filename to parse. NULL indicates $HOME/.twmrc
*/
-static int doparse (int (*ifunc)(void), char *srctypename, char*srcname)
+static int doparse (int (*ifunc)(void),
+ const char *srctypename, const char *srcname)
{
mods = 0;
ptr = 0;
@@ -160,7 +161,7 @@ int ParseTwmrc (char *filename)
int i;
char *home = NULL;
int homelen = 0;
- char *cp = NULL;
+ const char *cp = NULL;
char tmpfilename[257];
/*
@@ -302,7 +303,7 @@ TwmOutput(int c)
***********************************************************************/
typedef struct _TwmKeyword {
- char *name;
+ const char *name;
int value;
int subnum;
} TwmKeyword;