[Pkg-wmaker-commits] [wmshutdown] 116/173: wmshutdown.c: Fix compiler warnings.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:46:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmshutdown.

commit 15203f2f556053f6c04198ee428f6487dc85a207
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Thu Aug 7 00:59:30 2014 -0500

    wmshutdown.c: Fix compiler warnings.
---
 wmshutdown.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/wmshutdown.c b/wmshutdown.c
index b8626f9..81e5e16 100644
--- a/wmshutdown.c
+++ b/wmshutdown.c
@@ -64,7 +64,7 @@ GtkWidget *cria_dock(GtkWidget *mw, unsigned int s) {
 	return foobox;
 }
 
-int fecha(void) {
+void fecha(void) {
 	gtk_widget_destroy(dialog);
 	dialog = NULL;
 }
@@ -102,7 +102,7 @@ void handle_click(GtkWidget *widget, gpointer data) {
 	gtk_main_quit();
 }
 
-int button_press(GtkWidget *widget, GdkEvent *event) {
+void button_press(GtkWidget *widget, GdkEvent *event) {
 	GtkWidget *label;
 	gchar *message;
 	GtkWidget *halt_button;
@@ -113,7 +113,7 @@ int button_press(GtkWidget *widget, GdkEvent *event) {
 	switch (bevent->button) {
 	case 1:
 		if (dialog != NULL)
-			return 1;
+			return;
 		message = "Shutdown confirmation";
 		dialog = gtk_dialog_new();
 		label = gtk_label_new(message);
@@ -152,7 +152,6 @@ int button_press(GtkWidget *widget, GdkEvent *event) {
 }
 
 int main(int argc, char *argv[]) {
-	GdkDisplay *display;
 	GtkWidget *gtkiw;
 	GtkWidget *dockArea;
 	GtkWidget *pixmap;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmshutdown.git



More information about the Pkg-wmaker-commits mailing list