diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-07-03 18:38:05 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-07-03 18:38:05 +0000 |
commit | 1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1 (patch) | |
tree | 54c7b6b4bbaf2e493e773f9e48d7eb459f60f197 /mdk-stage1/newt/listbox.c | |
parent | a3fd355593f7ab9ae5c6d57ec69ef3f5a2f8cb9a (diff) | |
download | drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.gz drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.bz2 drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.xz drakx-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.zip |
compile with -W
Diffstat (limited to 'mdk-stage1/newt/listbox.c')
-rw-r--r-- | mdk-stage1/newt/listbox.c | 6 |
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; |