diff --git a/src/main.c b/src/main.c
index 0df0a509a65ab1327d81d89ae91b4cf3b644b7e6..76f173018278b4ed63c3a0c1df5fedf075c62219 100644
--- a/src/main.c
+++ b/src/main.c
@@ -74,7 +74,7 @@ int input_handle(int wait) {
   if(wait != 1)
     screen_draw();
   else {
-    gettimeofday(&tv, (void *)NULL);
+    gettimeofday(&tv, NULL);
     tv.tv_usec = (1000*(tv.tv_sec % 1000) + (tv.tv_usec / 1000)) / update_delay;
     if(lastupdate != tv.tv_usec) {
       screen_draw();