From 70665912289b852c0043c1e1c4603a6258e0d4cd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 4 Oct 2011 21:52:15 +0000 Subject: [PATCH] fixed build flaged static function --- src/main.c | 4 ++-- src/ui.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 6e0ded5..6f5f321 100644 --- a/src/main.c +++ b/src/main.c @@ -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); diff --git a/src/ui.c b/src/ui.c index 0728a84..016cbad 100644 --- 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); -- 2.7.4