qulogic/libgnt

a16987bfb5cb
Parents ac8d8a62c098
Children f94fe73ca72f
Fix some "Dead nested assignment"s and then kill off some useless
variables related to them.
--- a/gntentry.c Mon Jul 05 15:01:56 2010 +0000
+++ b/gntentry.c Sat Aug 14 05:17:38 2010 +0000
@@ -480,7 +480,7 @@
{
GntEntry *entry = GNT_ENTRY(bind);
GList *iter;
- const char *current , *pos;
+ const char *current;
int len;
if (entry->history->prev && entry->search->needle)
@@ -497,7 +497,7 @@
const char *str = iter->data;
/* A more utf8-friendly version of strstr would have been better, but
* for now, this will have to do. */
- if ((pos = strstr(str, current)))
+ if (strstr(str, current) != NULL)
break;
}
--- a/gnttextview.c Mon Jul 05 15:01:56 2010 +0000
+++ b/gnttextview.c Sat Aug 14 05:17:38 2010 +0000
@@ -711,7 +711,7 @@
int gnt_text_view_get_lines_above(GntTextView *view)
{
int above = 0;
- GList *list = view->list;
+ GList *list;
list = g_list_nth(view->list, GNT_WIDGET(view)->priv.height);
if (!list)
return 0;