@@ -1791,7 +1791,7 @@ void todo_clist_clear(GtkCList *clist)
1791
1791
void todo_update_clist (GtkWidget * clist , GtkWidget * tooltip_widget ,
1792
1792
ToDoList * * todo_list , int category , int main )
1793
1793
{
1794
- int num_entries , entries_shown , i ;
1794
+ int num_entries , entries_shown ;
1795
1795
gchar * empty_line [] = { "" ,"" ,"" ,"" ,"" };
1796
1796
GdkPixmap * pixmap_note ;
1797
1797
GdkPixmap * pixmap_check ;
@@ -1852,7 +1852,7 @@ void todo_update_clist(GtkWidget *clist, GtkWidget *tooltip_widget,
1852
1852
comp_now = now -> tm_year * 380 + now -> tm_mon * 31 + now -> tm_mday - 1 ;
1853
1853
1854
1854
entries_shown = 0 ;
1855
- for (temp_todo = * todo_list , i = 0 ; temp_todo ; temp_todo = temp_todo -> next ) {
1855
+ for (temp_todo = * todo_list ; temp_todo ; temp_todo = temp_todo -> next ) {
1856
1856
if ( ((temp_todo -> mtodo .attrib & 0x0F ) != category ) &&
1857
1857
category != CATEGORY_ALL ) {
1858
1858
continue ;
@@ -2177,8 +2177,6 @@ int todo_gui(GtkWidget *vbox, GtkWidget *hbox)
2177
2177
GtkWidget * vbox_temp ;
2178
2178
GtkWidget * separator ;
2179
2179
GtkWidget * label ;
2180
- time_t ltime ;
2181
- struct tm * now ;
2182
2180
char str [MAX_RADIO_BUTTON_LEN ];
2183
2181
int i ;
2184
2182
GSList * group ;
@@ -2249,8 +2247,8 @@ int todo_gui(GtkWidget *vbox, GtkWidget *hbox)
2249
2247
separator = gtk_hseparator_new ();
2250
2248
gtk_box_pack_start (GTK_BOX (vbox1 ), separator , FALSE, FALSE, 5 );
2251
2249
2252
- time (& ltime );
2253
- now = localtime (& ltime );
2250
+ // time(<ime);
2251
+ // now = localtime(<ime);
2254
2252
2255
2253
/* Make the 'Today is:' label */
2256
2254
glob_date_label = gtk_label_new (" " );
0 commit comments