summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-08 20:54:24 +0200
committerBert <ber.t@gmx.com>2011-09-08 20:54:24 +0200
commit6e575b0f721e1743fab098004d7dc26de5c7db49 (patch)
treef3fc170b48a92920fd2fae9b1c0e4302736f85ca /util.h
parent3a4f3862a7eccc4505f81582f62397c3651dc87f (diff)
downloadnsxiv-6e575b0f721e1743fab098004d7dc26de5c7db49.tar.zst
Strict conformance to IEEE Std 1003.1-2001
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*);