From 6e575b0f721e1743fab098004d7dc26de5c7db49 Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 8 Sep 2011 20:54:24 +0200 Subject: Strict conformance to IEEE Std 1003.1-2001 --- util.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'util.h') 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*); -- cgit v1.2.3