fixed build
authorJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 4 Oct 2011 21:52:15 +0000 (21:52 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 4 Oct 2011 21:52:15 +0000 (21:52 +0000)
flaged static function

src/main.c
src/ui.c

index 6e0ded5..6f5f321 100644 (file)
@@ -73,7 +73,7 @@
 
 static const char *program_name;
 
-void print_version()
+static void print_version()
 {
        printf("psensor %s\n", VERSION);
        printf(_("Copyright (C) %s jeanfi@gmail.com\n\
@@ -84,7 +84,7 @@ There is NO WARRANTY, to the extent permitted by law.\n"),
               "2010-2011");
 }
 
-void print_help()
+static void print_help()
 {
        printf(_("Usage: %s [OPTION]...\n"), program_name);
 
index 0728a84..016cbad 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -109,7 +109,7 @@ static void cb_sensor_preferences(GtkMenuItem *mi, gpointer data)
 
 void ui_psensor_quit(struct ui_psensor *ui)
 {
-       save_window_pos();
+       save_window_pos(ui);
 
        log_puts(LOG_DEBUG, "Destroy main window");
        gtk_widget_destroy(ui->main_window);