summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/newt/listbox.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-07-03 18:38:05 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-07-03 18:38:05 +0000
commit1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1 (patch)
tree54c7b6b4bbaf2e493e773f9e48d7eb459f60f197 /mdk-stage1/newt/listbox.c
parenta3fd355593f7ab9ae5c6d57ec69ef3f5a2f8cb9a (diff)
downloaddrakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.gz
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.bz2
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.xz
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.zip
compile with -W
Diffstat (limited to 'mdk-stage1/newt/listbox.c')
-rw-r--r--mdk-stage1/newt/listbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/newt/listbox.c b/mdk-stage1/newt/listbox.c
index ef276aeb4..cdbf792ca 100644
--- a/mdk-stage1/newt/listbox.c
+++ b/mdk-stage1/newt/listbox.c
@@ -297,7 +297,7 @@ void newtListboxSetEntry(newtComponent co, int num, const char * text) {
free(item->text);
item->text = strdup(text);
}
- if (li->userHasSetWidth == 0 && strlen(text) > li->curWidth) {
+ if (li->userHasSetWidth == 0 && strlen(text) > (size_t)li->curWidth) {
updateWidth(co, li, strlen(text));
}
@@ -329,7 +329,7 @@ int newtListboxAppendEntry(newtComponent co, const char * text,
item = li->boxItems = malloc(sizeof(struct items));
}
- if (!li->userHasSetWidth && text && (strlen(text) > li->curWidth))
+ if (!li->userHasSetWidth && text && (strlen(text) > (size_t)li->curWidth))
updateWidth(co, li, strlen(text));
item->text = strdup(text); item->data = data; item->next = NULL;
@@ -369,7 +369,7 @@ int newtListboxInsertEntry(newtComponent co, const char * text,
item->next = NULL;
}
- if (!li->userHasSetWidth && text && (strlen(text) > li->curWidth))
+ if (!li->userHasSetWidth && text && (strlen(text) > (size_t)li->curWidth))
updateWidth(co, li, strlen(text));
item->text = strdup(text?text:"(null)"); item->data = data;