summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-22 18:19:24 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-22 18:19:24 -0300
commitd28b281165ad52dff322d22a546eee9ae002479d (patch)
tree31a4c08fc05eb53ff7d1d26ec0e7025863ebd332
parentb1564c2be98963ae825c5d6671cd1916cf4ba118 (diff)
Fix compiler complaints.
-rw-r--r--htop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 270395df..aee72aa5 100644
--- a/htop.c
+++ b/htop.c
@@ -36,6 +36,7 @@ in the source distribution for its full text.
#include <string.h>
#include <sys/param.h>
#include <sys/time.h>
+#include <time.h>
//#link m
@@ -339,7 +340,7 @@ void sortBy(Panel* panel, ProcessList* pl, Settings* settings, int headerHeight,
Object_delete(sortPanel);
}
-static int millisleep(unsigned long millisec) {
+static void millisleep(unsigned long millisec) {
struct timespec req = {
.tv_sec = 0,
.tv_nsec = millisec * 1000000L

© 2014-2024 Faster IT GmbH | imprint | privacy policy