summaryrefslogtreecommitdiff
path: root/unlock_indicator.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-04-01 12:28:28 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-04-01 12:28:28 +0200
commitdc2b6e5f3985354d42ea015afc15be2258d6b660 (patch)
tree744e51a3e7794d372f1e541b6b09af1af63b3d3c /unlock_indicator.c
parent3c2436cb71cf37fe4f12eb6b1ccbbe3393ade2b1 (diff)
Use (void) instead of () for functions without args (Thanks fernandotcl)
See also: http://article.gmane.org/gmane.linux.kernel/1268792 The C compiler will handle (void) as "no arguments" and () as "variadic function" (equivalent to (...)) which might lead to subtle errors, such as the one which was fixed with commit 0ea64ae4.
Diffstat (limited to 'unlock_indicator.c')
-rw-r--r--unlock_indicator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unlock_indicator.c b/unlock_indicator.c
index d603531..3a33ca9 100644
--- a/unlock_indicator.c
+++ b/unlock_indicator.c
@@ -272,7 +272,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
* Calls draw_image on a new pixmap and swaps that with the current pixmap
*
*/
-void redraw_screen() {
+void redraw_screen(void) {
xcb_pixmap_t bg_pixmap = draw_image(last_resolution);
xcb_change_window_attributes(conn, win, XCB_CW_BACK_PIXMAP, (uint32_t[1]){ bg_pixmap });
/* XXX: Possible optimization: Only update the area in the middle of the
@@ -303,7 +303,7 @@ static void clear_indicator(EV_P_ ev_timer *w, int revents) {
* after an unsuccessful authentication attempt.
*
*/
-void start_clear_indicator_timeout() {
+void start_clear_indicator_timeout(void) {
if (clear_indicator_timeout) {
ev_timer_stop(main_loop, clear_indicator_timeout);
ev_timer_set(clear_indicator_timeout, 1.0, 0.);
@@ -322,7 +322,7 @@ void start_clear_indicator_timeout() {
* Stops the clear_indicator timeout.
*
*/
-void stop_clear_indicator_timeout() {
+void stop_clear_indicator_timeout(void) {
if (clear_indicator_timeout) {
ev_timer_stop(main_loop, clear_indicator_timeout);
free(clear_indicator_timeout);