diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-04 23:21:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-23 12:15:07 -0800 |
commit | 05f589d464a961aea8d25632a390fb66a06cd186 (patch) | |
tree | 76ed00ac377c882f2ba7f1c8f8f19926375d6aca /mi | |
parent | 232f1ddf3d060f3ce9d2ebd35f33b1294cac380e (diff) |
Fix gcc -Wwrite-strings warnings in various extensions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/miinitext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c index 4499f377c..883699259 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -268,7 +268,7 @@ extern void GEExtensionInit(INITARGS); * configurable extensions. */ typedef struct { - char *name; + const char *name; Bool *disablePtr; } ExtensionToggle; @@ -337,7 +337,7 @@ static ExtensionToggle ExtensionToggleList[] = { NULL, NULL } }; -Bool EnableDisableExtension(char *name, Bool enable) +Bool EnableDisableExtension(const char *name, Bool enable) { ExtensionToggle *ext = &ExtensionToggleList[0]; @@ -357,7 +357,7 @@ Bool EnableDisableExtension(char *name, Bool enable) return FALSE; } -void EnableDisableExtensionError(char *name, Bool enable) +void EnableDisableExtensionError(const char *name, Bool enable) { ExtensionToggle *ext = &ExtensionToggleList[0]; Bool found = FALSE; |