summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/util.h b/util.h
index 9d5dc1d..cc4da88 100644
--- a/util.h
+++ b/util.h
@@ -45,13 +45,6 @@
(tv)->tv_usec += (t) % 1000 * 1000; \
}
-#ifndef TIMESPEC_TO_TIMEVAL
-#define TIMESPEC_TO_TIMEVAL(tv,ts) { \
- (tv)->tv_sec = (ts)->tv_sec; \
- (tv)->tv_usec = (ts)->tv_nsec / 1000; \
-}
-#endif
-
typedef struct {
DIR *dir;
char *name;
@@ -69,6 +62,8 @@ char* s_strdup(char*);
void warn(const char*, ...);
void die(const char*, ...);
+ssize_t get_line(char**, size_t*, FILE*);
+
void size_readable(float*, const char**);
char* absolute_path(const char*);