[gnome-control-center] Fix drw_timer_new() prototype



commit 5b45a61320c2bd37b36ceb802012bd51c4d91352
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Sep 10 11:49:58 2010 +0100

    Fix drw_timer_new() prototype
    
    To not generate a warning when compiling.

 typing-break/drw-timer.c |    8 ++++----
 typing-break/drw-timer.h |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/typing-break/drw-timer.c b/typing-break/drw-timer.c
index d108034..8eafc53 100644
--- a/typing-break/drw-timer.c
+++ b/typing-break/drw-timer.c
@@ -21,24 +21,24 @@
 #include <glib.h>
 #include "drw-timer.h"
 
-struct _DrwTimer 
+struct _DrwTimer
 {
 	GTimeVal start_time;
 };
 
-DrwTimer * drw_timer_new () 
+DrwTimer * drw_timer_new (void)
 {
 	DrwTimer * timer = g_new0 (DrwTimer, 1);
 	drw_timer_start (timer);
 	return timer;
 }
 
-void drw_timer_start (DrwTimer *timer) 
+void drw_timer_start (DrwTimer *timer)
 {
 	g_get_current_time (&timer->start_time);
 }
 
-double drw_timer_elapsed (DrwTimer *timer) 
+double drw_timer_elapsed (DrwTimer *timer)
 {
 	GTimeVal now;
 	g_get_current_time (&now);
diff --git a/typing-break/drw-timer.h b/typing-break/drw-timer.h
index 1a259c5..09392d2 100644
--- a/typing-break/drw-timer.h
+++ b/typing-break/drw-timer.h
@@ -34,7 +34,7 @@
  */
 
 typedef struct _DrwTimer DrwTimer;
-DrwTimer * drw_timer_new ();
+DrwTimer * drw_timer_new (void);
 void drw_timer_start (DrwTimer *timer);
 double drw_timer_elapsed (DrwTimer *timer);
 void drw_timer_destroy (DrwTimer *timer);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]