diff options
author | nijtmans <nijtmans> | 2008-10-30 23:18:59 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-10-30 23:18:59 (GMT) |
commit | 6f5d76a8755403d49a1465f4b9f41164a7f311f2 (patch) | |
tree | 9f94fbbc8e20c71db340e9aa5b02b47387bd82f0 /generic/tkListbox.c | |
parent | 4dddde633cc58640988340836315bbb6b780b9da (diff) | |
download | tk-6f5d76a8755403d49a1465f4b9f41164a7f311f2.zip tk-6f5d76a8755403d49a1465f4b9f41164a7f311f2.tar.gz tk-6f5d76a8755403d49a1465f4b9f41164a7f311f2.tar.bz2 |
more internal -Wwrite-strings warning fixes
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r-- | generic/tkListbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c index b35d6ea..54deb14 100644 --- a/generic/tkListbox.c +++ b/generic/tkListbox.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkListbox.c,v 1.50 2008/10/17 23:18:37 nijtmans Exp $ + * RCS: @(#) $Id: tkListbox.c,v 1.51 2008/10/30 23:18:59 nijtmans Exp $ */ #include "default.h" @@ -213,7 +213,7 @@ enum state { STATE_DISABLED, STATE_NORMAL }; -static char *stateStrings[] = { +static const char *const stateStrings[] = { "disabled", "normal", NULL }; @@ -221,7 +221,7 @@ enum activeStyle { ACTIVE_STYLE_DOTBOX, ACTIVE_STYLE_NONE, ACTIVE_STYLE_UNDERLINE }; -static char *activeStyleStrings[] = { +static const char *const activeStyleStrings[] = { "dotbox", "none", "underline", NULL }; @@ -3408,7 +3408,7 @@ ListboxListVarProc( if (Tcl_ListObjLength(listPtr->interp, varListObj, &i) != TCL_OK) { Tcl_SetVar2Ex(interp, listPtr->listVarName, NULL, oldListObj, TCL_GLOBAL_ONLY); - return "invalid listvar value"; + return (char *) "invalid listvar value"; } listPtr->listObj = varListObj; |