summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/list.c b/src/list.c
index 4422cc9..2597471 100644
--- a/src/list.c
+++ b/src/list.c
@@ -111,10 +111,10 @@ AddToList(name_list ** list_head, char *name, char *ptr)
*
* \param list a pointer to the head of a list
* \param name a pointer to the name to look for
- * \param class a pointer to the class to look for
+ * \param xclass a pointer to the class to look for
*/
char *
-LookInList(name_list * list_head, const char *name, XClassHint *class)
+LookInList(name_list * list_head, const char *name, XClassHint *xclass)
{
name_list *nptr;
@@ -123,15 +123,15 @@ LookInList(name_list * list_head, const char *name, XClassHint *class)
if (strcmp(name, nptr->name) == 0)
return (nptr->ptr);
- if (class) {
+ if (xclass) {
/* look for the res_name next */
for (nptr = list_head; nptr != NULL; nptr = nptr->next)
- if (strcmp(class->res_name, nptr->name) == 0)
+ if (strcmp(xclass->res_name, nptr->name) == 0)
return (nptr->ptr);
/* finally look for the res_class */
for (nptr = list_head; nptr != NULL; nptr = nptr->next)
- if (strcmp(class->res_class, nptr->name) == 0)
+ if (strcmp(xclass->res_class, nptr->name) == 0)
return (nptr->ptr);
}
return (NULL);