summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 19:45:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 19:52:17 -0700
commitfd0da0d44a8501edaac3be7fac9449ad730d8bf4 (patch)
tree14af1e5d5b15551b97cf77345fd0dbdecd5889fb
parentaf9e4b75167c0e31ec02d5ababf204daa12f500d (diff)
Add const attributes to TMparse typedefs to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/TMparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/TMparse.c b/src/TMparse.c
index 5fddb82..d233644 100644
--- a/src/TMparse.c
+++ b/src/TMparse.c
@@ -113,14 +113,14 @@ typedef TMShortCard Value;
typedef void (*ModifierProc)(Value, LateBindingsPtr*, Boolean, Value*);
typedef struct _ModifierRec {
- char* name;
+ const char *name;
XrmQuark signature;
ModifierProc modifierParseProc;
Value value;
} ModifierRec, *ModifierKeys;
typedef struct _EventKey {
- char *event;
+ const char *event;
XrmQuark signature;
EventType eventType;
ParseProc parseDetail;
@@ -128,7 +128,7 @@ typedef struct _EventKey {
}EventKey, *EventKeys;
typedef struct {
- char *name;
+ const char *name;
XrmQuark signature;
Value value;
} NameValueRec, *NameValueTable;