diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-04 20:00:26 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-04 21:07:10 -0400 |
commit | 5ea7395991b55b0b7ce8cc1dcaafc37e2b8b9d46 (patch) | |
tree | f8fe23739d43bf1021a63ddea5b9015efd17f1fe | |
parent | 30a9013124591c253254255dbda16bdd516c2e9a (diff) | |
download | xorg-lib-libXaw-5ea7395991b55b0b7ce8cc1dcaafc37e2b8b9d46.tar.gz |
change a couple of variable-types to reduce compiler warnings (no object change)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/TextSink.c | 5 |
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]; |