diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 00:24:30 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 00:32:25 -0700 |
commit | e84f2e87222879ca667c1fb3d1cb3236a1159d12 (patch) | |
tree | 811a62b78ef6ba09d9781fc3dd1159cb079b55b4 /src/twm.h | |
parent | b16ce9773e4da5897ab546de85e48a3ea58d0e00 (diff) |
Constification cleanup - fix dozens of gcc warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/twm.h')
-rw-r--r-- | src/twm.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -147,7 +147,7 @@ typedef SIGNAL_T (*SigProc)(int); /* type of function returned by signal() */ typedef struct MyFont { - char *name; /* name of the font */ + const char *name; /* name of the font */ XFontStruct *font; /* font structure */ XFontSet fontset; /* fontset structure */ int height; /* height of the font */ @@ -163,13 +163,13 @@ typedef struct ColorPair typedef struct _TitleButton { struct _TitleButton *next; /* next link in chain */ - char *name; /* bitmap name in case of deferal */ + const char *name; /* bitmap name in case of deferal */ Pixmap bitmap; /* image to display in button */ int srcx, srcy; /* from where to start copying */ unsigned int width, height; /* size of pixmap */ int dstx, dsty; /* to where to start copying */ int func; /* function to execute */ - char *action; /* optional action arg */ + const char *action; /* optional action arg */ struct MenuRoot *menuroot; /* menu to pop on F_MENU */ Bool rightside; /* t: on right, f: on left */ } TitleButton; @@ -379,7 +379,7 @@ extern XContext IconManagerContext; extern XContext ScreenContext; extern XContext ColormapContext; -extern char *Home; +extern const char *Home; extern int HomeLen; extern int ParseError; @@ -395,7 +395,7 @@ extern int InfoLines; extern char Info[][INFO_SIZE]; extern int Argc; extern char **Argv; -extern void NewFontCursor ( Cursor *cp, char *str ); +extern void NewFontCursor ( Cursor *cp, const char *str ); extern void NewBitmapCursor ( Cursor *cp, char *source, char *mask ); extern Pixmap CreateMenuIcon ( int height, unsigned int *widthp, unsigned int *heightp ); @@ -411,7 +411,7 @@ extern void twmrc_error_prefix ( void ); extern int yyparse ( void ); extern int yylex ( void ); -extern void yyerror ( char *s ); +extern void yyerror ( const char *s ); extern int doinput ( char *buf, int size ); extern void RemoveDQuote ( char *str ); |