summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-05-31 12:43:04 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-05-31 12:48:55 -0700
commit55a26c49c8a976abb0ead8bd58da6260de61b739 (patch)
tree1d9bee988887fae4d4db9cf46da4c634b86dffe7 /src/list.c
parentee3dcf350b5621d7965a8b8185a3dc534bcc46c7 (diff)
Make some char pointers const as necessary to clear some gcc warnings
twm.c:544:20: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Scr->iconmgr.name = "TWM"; ^ twm.c:545:25: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Scr->iconmgr.icon_name = "Icons"; Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list.c b/src/list.c
index b43cd59..3550716 100644
--- a/src/list.c
+++ b/src/list.c
@@ -117,7 +117,7 @@ AddToList(name_list **list_head, char *name, char *ptr)
* \param class a pointer to the class to look for
*/
char *
-LookInList(name_list *list_head, char *name, XClassHint *class)
+LookInList(name_list *list_head, const char *name, XClassHint *class)
{
name_list *nptr;
@@ -142,7 +142,7 @@ LookInList(name_list *list_head, char *name, XClassHint *class)
}
char *
-LookInNameList(name_list *list_head, char *name)
+LookInNameList(name_list *list_head, const char *name)
{
return (LookInList(list_head, name, NULL));
}
@@ -158,7 +158,7 @@ LookInNameList(name_list *list_head, char *name)
* \param class a pointer to the class to look for
* \param[out] ptr fill in the list value if the name was found
*/
-int GetColorFromList(name_list *list_head, char *name, XClassHint *class,
+int GetColorFromList(name_list *list_head, const char *name, XClassHint *class,
Pixel *ptr)
{
int save;