summaryrefslogtreecommitdiff
path: root/src/TextSink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/TextSink.c')
-rw-r--r--src/TextSink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/TextSink.c b/src/TextSink.c
index 758cc2b..660b0c2 100644
--- a/src/TextSink.c
+++ b/src/TextSink.c
@@ -1148,7 +1148,7 @@ DestroyTextPropertyList(XawTextPropertyList *list)
{
int i;
- for (i = 0; i < list->num_properties; i++) {
+ for (i = 0; (Cardinal)i < list->num_properties; i++) {
if (list->properties[i]->font)
XFreeFont(DisplayOfScreen(list->screen), list->properties[i]->font);
XtFree((char*)list->properties[i]);
@@ -1499,7 +1499,8 @@ XawTextSinkConvertPropertyList(String name, String spec, Screen *screen,
XawTextPropertyList **ptr = NULL;
XawTextPropertyList *propl, *prev = NULL;
XawTextProperty *def_prop = NULL;
- String str, tok;
+ char * str;
+ String tok;
char *tmp;
char buffer[BUFSIZ];