Fix bug introduced when adding sem_timedwait
[akaros.git] / user / pthread / profalarm.c
index 9052079..d45c054 100644 (file)
@@ -3,9 +3,9 @@
  * See LICENSE for details. */
 
 #include <pthread.h>
-#include <pvcalarm.h>
+#include <benchutil/pvcalarm.h>
 
-void pvcalarm_callback()
+void pvcalarm_callback(void)
 {
        if (current_uthread)
                pthread_kill((pthread_t)current_uthread, SIGPROF);
@@ -16,7 +16,7 @@ void enable_profalarm(uint64_t usecs)
        enable_pvcalarms(PVCALARM_PROF, usecs, pvcalarm_callback);
 }
 
-void disable_profalarm()
+void disable_profalarm(void)
 {
        disable_pvcalarms();
 }