<div dir="ltr">Reviewed-by: Jasper St. Pierre <<a href="mailto:jstpierre@mecheye.net">jstpierre@mecheye.net</a>></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 9:51 PM, Alan Coopersmith <span dir="ltr"><<a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Alan Coopersmith <<a href="mailto:alan.coopersmith@oracle.com">alan.coopersmith@oracle.com</a>><br>
---<br>
action.c | 8 ++++----<br>
action.h | 4 ++--<br>
compat.c | 2 +-<br>
expr.c | 12 ++++++------<br>
geometry.c | 26 +++++++++++++-------------<br>
indicators.c | 2 +-<br>
indicators.h | 2 +-<br>
keytypes.c | 2 +-<br>
symbols.c | 8 ++++----<br>
9 files changed, 33 insertions(+), 33 deletions(-)<br>
<br>
diff --git a/action.c b/action.c<br>
index 3b82e64..4623c0c 100644<br>
--- a/action.c<br>
+++ b/action.c<br>
@@ -41,7 +41,7 @@ static ExprDef constFalse;<br>
/***====================================================================***/<br>
<br>
static Bool<br>
-stringToAction(char *str, unsigned *type_rtrn)<br>
+stringToAction(const char *str, unsigned *type_rtrn)<br>
{<br>
if (str == NULL)<br>
return False;<br>
@@ -134,7 +134,7 @@ stringToAction(char *str, unsigned *type_rtrn)<br>
}<br>
<br>
static Bool<br>
-stringToField(char *str, unsigned *field_rtrn)<br>
+stringToField(const char *str, unsigned *field_rtrn)<br>
{<br>
<br>
if (str == NULL)<br>
@@ -1397,8 +1397,8 @@ HandleActionDef(ExprDef * def,<br>
<br>
int<br>
SetActionField(XkbDescPtr xkb,<br>
- char *elem,<br>
- char *field,<br>
+ const char *elem,<br>
+ const char *field,<br>
ExprDef * array_ndx, ExprDef * value, ActionInfo ** info_rtrn)<br>
{<br>
ActionInfo *new, *old;<br>
diff --git a/action.h b/action.h<br>
index 2fb7a5e..983b06e 100644<br>
--- a/action.h<br>
+++ b/action.h<br>
@@ -72,8 +72,8 @@ extern int HandleActionDef(ExprDef * /* def */ ,<br>
);<br>
<br>
extern int SetActionField(XkbDescPtr /* xkb */ ,<br>
- char * /* elem */ ,<br>
- char * /* field */ ,<br>
+ const char * /* elem */ ,<br>
+ const char * /* field */ ,<br>
ExprDef * /* index */ ,<br>
ExprDef * /* value */ ,<br>
ActionInfo ** /* info_rtrn */<br>
diff --git a/compat.c b/compat.c<br>
index f4d82a6..82fd4e6 100644<br>
--- a/compat.c<br>
+++ b/compat.c<br>
@@ -494,7 +494,7 @@ static LookupEntry useModMapValues[] = {<br>
static int<br>
SetInterpField(SymInterpInfo * si,<br>
XkbDescPtr xkb,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, CompatInfo * info)<br>
{<br>
int ok = 1;<br>
diff --git a/expr.c b/expr.c<br>
index 195e0f3..e0f957c 100644<br>
--- a/expr.c<br>
+++ b/expr.c<br>
@@ -292,7 +292,7 @@ ExprResolveModIndex(ExprDef * expr,<br>
IdentLookupFunc lookup, XPointer lookupPriv)<br>
{<br>
int ok = 0;<br>
- char *bogus = NULL;<br>
+ const char *bogus = NULL;<br>
<br>
switch (expr->op)<br>
{<br>
@@ -382,7 +382,7 @@ ExprResolveBoolean(ExprDef * expr,<br>
IdentLookupFunc lookup, XPointer lookupPriv)<br>
{<br>
int ok = 0;<br>
- char *bogus = NULL;<br>
+ const char *bogus = NULL;<br>
<br>
switch (expr->op)<br>
{<br>
@@ -715,7 +715,7 @@ ExprResolveString(ExprDef * expr,<br>
ExprResult leftRtrn, rightRtrn;<br>
ExprDef *left;<br>
ExprDef *right;<br>
- char *bogus = NULL;<br>
+ const char *bogus = NULL;<br>
<br>
switch (expr->op)<br>
{<br>
@@ -729,7 +729,7 @@ ExprResolveString(ExprDef * expr,<br>
val_rtrn->str = XkbAtomGetString(NULL, expr->value.str);<br>
if (val_rtrn->str == NULL)<br>
{<br>
- static char *empty = "";<br>
+ static const char *empty = "";<br>
val_rtrn->str = empty;<br>
}<br>
return True;<br>
@@ -822,7 +822,7 @@ ExprResolveKeyName(ExprDef * expr,<br>
int ok = 0;<br>
ExprDef *left;<br>
ExprResult leftRtrn;<br>
- char *bogus = NULL;<br>
+ const char *bogus = NULL;<br>
<br>
switch (expr->op)<br>
{<br>
@@ -941,7 +941,7 @@ ExprResolveMask(ExprDef * expr,<br>
int ok = 0;<br>
ExprResult leftRtrn, rightRtrn;<br>
ExprDef *left, *right;<br>
- char *bogus = NULL;<br>
+ const char *bogus = NULL;<br>
<br>
switch (expr->op)<br>
{<br>
diff --git a/geometry.c b/geometry.c<br>
index cfd1f51..2daa213 100644<br>
--- a/geometry.c<br>
+++ b/geometry.c<br>
@@ -967,7 +967,7 @@ AddDoodad(SectionInfo * si, GeometryInfo * info, DoodadInfo * new)<br>
}<br>
<br>
static DoodadInfo *<br>
-FindDfltDoodadByTypeName(char *name, SectionInfo * si, GeometryInfo * info)<br>
+FindDfltDoodadByTypeName(const char *name, SectionInfo *si, GeometryInfo *info)<br>
{<br>
DoodadInfo *dflt;<br>
unsigned type;<br>
@@ -1408,7 +1408,7 @@ HandleIncludeGeometry(IncludeStmt * stmt, XkbDescPtr xkb, GeometryInfo * info,<br>
<br>
static int<br>
SetShapeField(ShapeInfo * si,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, GeometryInfo * info)<br>
{<br>
ExprResult tmp;<br>
@@ -1440,7 +1440,7 @@ SetShapeField(ShapeInfo * si,<br>
<br>
static int<br>
SetShapeDoodadField(DoodadInfo * di,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx,<br>
ExprDef * value, SectionInfo * si, GeometryInfo * info)<br>
{<br>
@@ -1510,14 +1510,14 @@ SetShapeDoodadField(DoodadInfo * di,<br>
<br>
static int<br>
SetTextDoodadField(DoodadInfo * di,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx,<br>
ExprDef * value, SectionInfo * si, GeometryInfo * info)<br>
{<br>
ExprResult tmp;<br>
unsigned def;<br>
unsigned type;<br>
- char *typeName = "text doodad";<br>
+ const char *typeName = "text doodad";<br>
union<br>
{<br>
Atom *str;<br>
@@ -1660,7 +1660,7 @@ SetTextDoodadField(DoodadInfo * di,<br>
<br>
static int<br>
SetIndicatorDoodadField(DoodadInfo * di,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx,<br>
ExprDef * value,<br>
SectionInfo * si, GeometryInfo * info)<br>
@@ -1705,12 +1705,12 @@ SetIndicatorDoodadField(DoodadInfo * di,<br>
<br>
static int<br>
SetLogoDoodadField(DoodadInfo * di,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx,<br>
ExprDef * value, SectionInfo * si, GeometryInfo * info)<br>
{<br>
ExprResult tmp;<br>
- char *typeName = "logo doodad";<br>
+ const char *typeName = "logo doodad";<br>
<br>
if ((!uStrCaseCmp(field, "corner"))<br>
|| (!uStrCaseCmp(field, "cornerradius")))<br>
@@ -1786,7 +1786,7 @@ SetLogoDoodadField(DoodadInfo * di,<br>
<br>
static int<br>
SetDoodadField(DoodadInfo * di,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx,<br>
ExprDef * value, SectionInfo * si, GeometryInfo * info)<br>
{<br>
@@ -1889,7 +1889,7 @@ SetDoodadField(DoodadInfo * di,<br>
<br>
static int<br>
SetSectionField(SectionInfo * si,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, GeometryInfo * info)<br>
{<br>
unsigned short *pField;<br>
@@ -1977,7 +1977,7 @@ SetSectionField(SectionInfo * si,<br>
<br>
static int<br>
SetRowField(RowInfo * row,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, GeometryInfo * info)<br>
{<br>
ExprResult tmp;<br>
@@ -2841,7 +2841,7 @@ HandleGeometryFile(XkbFile * file,<br>
XkbDescPtr xkb, unsigned merge, GeometryInfo * info)<br>
{<br>
ParseCommon *stmt;<br>
- char *failWhat;<br>
+ const char *failWhat;<br>
<br>
if (merge == MergeDefault)<br>
merge = MergeAugment;<br>
@@ -3273,7 +3273,7 @@ FontFromParts(Atom fontTok,<br>
Atom setWidthTok, Atom varTok, int size, Atom encodingTok)<br>
{<br>
int totalSize;<br>
- char *font, *weight, *slant, *setWidth, *variant, *encoding;<br>
+ const char *font, *weight, *slant, *setWidth, *variant, *encoding;<br>
char *rtrn;<br>
<br>
font = (fontTok != None ? XkbAtomGetString(NULL, fontTok) : DFLT_FONT);<br>
diff --git a/indicators.c b/indicators.c<br>
index d4a362f..421ad58 100644<br>
--- a/indicators.c<br>
+++ b/indicators.c<br>
@@ -200,7 +200,7 @@ static LookupEntry groupComponentNames[] = {<br>
int<br>
SetIndicatorMapField(LEDInfo * led,<br>
XkbDescPtr xkb,<br>
- char *field, ExprDef * arrayNdx, ExprDef * value)<br>
+ const char *field, ExprDef *arrayNdx, ExprDef *value)<br>
{<br>
ExprResult rtrn;<br>
Bool ok;<br>
diff --git a/indicators.h b/indicators.h<br>
index 35ae38a..8e7884d 100644<br>
--- a/indicators.h<br>
+++ b/indicators.h<br>
@@ -62,7 +62,7 @@ extern LEDInfo *AddIndicatorMap(LEDInfo * /* oldLEDs */ ,<br>
<br>
extern int SetIndicatorMapField(LEDInfo * /* led */ ,<br>
XkbDescPtr /* xkb */ ,<br>
- char * /* field */ ,<br>
+ const char * /* field */ ,<br>
ExprDef * /* arrayNdx */ ,<br>
ExprDef * /* value */<br>
);<br>
diff --git a/keytypes.c b/keytypes.c<br>
index da55d75..375ca3e 100644<br>
--- a/keytypes.c<br>
+++ b/keytypes.c<br>
@@ -879,7 +879,7 @@ SetLevelName(KeyTypeInfo * type, ExprDef * arrayNdx, ExprDef * value)<br>
static Bool<br>
SetKeyTypeField(KeyTypeInfo * type,<br>
XkbDescPtr xkb,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, KeyTypesInfo * info)<br>
{<br>
ExprResult tmp;<br>
diff --git a/symbols.c b/symbols.c<br>
index 5547999..d43ba9f 100644<br>
--- a/symbols.c<br>
+++ b/symbols.c<br>
@@ -928,7 +928,7 @@ GetGroupIndex(KeyInfo * key,<br>
static Bool<br>
AddSymbolsToKey(KeyInfo * key,<br>
XkbDescPtr xkb,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, SymbolsInfo * info)<br>
{<br>
unsigned ndx, nSyms;<br>
@@ -982,7 +982,7 @@ AddSymbolsToKey(KeyInfo * key,<br>
static Bool<br>
AddActionsToKey(KeyInfo * key,<br>
XkbDescPtr xkb,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, SymbolsInfo * info)<br>
{<br>
register int i;<br>
@@ -1118,7 +1118,7 @@ static LookupEntry rgEntries[] = {<br>
static Bool<br>
SetSymbolsField(KeyInfo * key,<br>
XkbDescPtr xkb,<br>
- char *field,<br>
+ const char *field,<br>
ExprDef * arrayNdx, ExprDef * value, SymbolsInfo * info)<br>
{<br>
Bool ok = True;<br>
@@ -1235,7 +1235,7 @@ SetSymbolsField(KeyInfo * key,<br>
uStrCasePrefix("permanentoverlay", field))<br>
{<br>
Bool permanent = False;<br>
- char *which;<br>
+ const char *which;<br>
int overlayNdx;<br>
if (uStrCasePrefix("permanent", field))<br>
{<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.9.2<br>
<br>
_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>