--- np2/x11/gtk2/dialog_config.c 2010/12/23 06:32:35 1.8 +++ np2/x11/gtk2/dialog_config.c 2011/01/15 18:43:13 1.11 @@ -1,5 +1,3 @@ -/* $Id: dialog_config.c,v 1.8 2010/12/23 06:32:35 monaka Exp $ */ - /* * Copyright (c) 2002-2003 NONAKA Kimihiro * All rights reserved. @@ -92,8 +90,6 @@ ok_button_clicked(GtkButton *b, gpointer UINT renewal = 0; int i; - UNUSED(b); - if (strcmp(base, "1.9968MHz") == 0) { if (np2cfg.baseclock != PCBASECLOCK20) { np2cfg.baseclock = PCBASECLOCK20; @@ -182,8 +178,6 @@ static void dialog_destroy(GtkWidget *w, GtkWidget **wp) { - UNUSED(wp); - install_idle_process(); gtk_widget_destroy(w); } @@ -192,8 +186,6 @@ static void arch_radiobutton_clicked(GtkButton *b, gpointer d) { - UNUSED(b); - arch = (char *)d; } @@ -201,8 +193,6 @@ static void rate_radiobutton_clicked(GtkButton *b, gpointer d) { - UNUSED(b); - rate = GPOINTER_TO_INT(d); } @@ -213,17 +203,15 @@ clock_changed(GtkEditable *e, gpointer d const gchar *multp = gtk_entry_get_text(GTK_ENTRY(clockmult_entry)); guint mult = milstr_solveINT(multp); gchar buf[80]; - gint clock; - - UNUSED(e); + gint clk; if (base[0] == '1') { - clock = PCBASECLOCK20 * mult; + clk = PCBASECLOCK20 * mult; } else { - clock = PCBASECLOCK25 * mult; + clk = PCBASECLOCK25 * mult; } g_snprintf(buf, sizeof(buf), "%2d.%03dMHz", - clock / 1000000U, (clock / 1000) % 1000); + clk / 1000000U, (clk / 1000) % 1000); gtk_label_set_text(GTK_LABEL((GtkWidget*)d), buf); }