summaryrefslogtreecommitdiff
path: root/typing-break
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-06 14:30:07 +0100
committerraveit65 <[email protected]>2020-03-10 21:13:18 +0100
commit7419ff0f54fe9f1489bbc491ea78195bffe1cb76 (patch)
tree6446256752906b33ffe97b44ea6c985336ac0e04 /typing-break
parent9a8199449b9500aff28b5da4a5ac4988e49c2b92 (diff)
downloadmate-control-center-7419ff0f54fe9f1489bbc491ea78195bffe1cb76.tar.bz2
mate-control-center-7419ff0f54fe9f1489bbc491ea78195bffe1cb76.tar.xz
remove warnings: function declaration isn’t a prototype
Diffstat (limited to 'typing-break')
-rw-r--r--typing-break/drw-timer.c2
-rw-r--r--typing-break/drw-timer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/typing-break/drw-timer.c b/typing-break/drw-timer.c
index ace2c19f..a757911e 100644
--- a/typing-break/drw-timer.c
+++ b/typing-break/drw-timer.c
@@ -26,7 +26,7 @@ struct _DrwTimer
GTimeVal start_time;
};
-DrwTimer * drw_timer_new ()
+DrwTimer * drw_timer_new (void)
{
DrwTimer * timer = g_new0 (DrwTimer, 1);
drw_timer_start (timer);
diff --git a/typing-break/drw-timer.h b/typing-break/drw-timer.h
index 86636b00..428d9480 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);