Commit 02102320 authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/Keystroke.c: Fix warning: pointer type mismatch in conditional expression.

parent 00059798
...@@ -168,7 +168,7 @@ static int read_binding_from_xmlnode(xmlNode *node, struct nxagentSpecialKeystro ...@@ -168,7 +168,7 @@ static int read_binding_from_xmlnode(xmlNode *node, struct nxagentSpecialKeystro
/* ignore attributes without data (which should never happen anyways) */ /* ignore attributes without data (which should never happen anyways) */
if (attr->children->content == NULL) if (attr->children->content == NULL)
{ {
char *aname = (attr->name)?(attr->name):"unknown"; char *aname = (attr->name)?((char *)attr->name):"unknown";
fprintf(stderr, "attribute %s with NULL value", aname); fprintf(stderr, "attribute %s with NULL value", aname);
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment