ref: 29c70a1082291f1643b2eff68146385983ceaa76
parent: 736b8b4e9a0173ce9a59655b3e5ae04dc1ac2700
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Feb 23 06:22:12 EST 2018
[ar] Convert totime() into a function If totime() is a macro then ar/main.o will be different for every driver. It is desirable to share it between different drivers.
--- a/ar/posix/stat.c
+++ b/ar/posix/stat.c
@@ -1,3 +1,9 @@
static char sccsid[] = "@(#) ./ar/stat.c";
#include "stat.h"
+
+time_t
+totime(unsigned long long t)
+{
+ return t;
+}
--- a/ar/posix/stat.h
+++ b/ar/posix/stat.h
@@ -3,4 +3,3 @@
#include <sys/stat.h>
#include <unistd.h>
-#define totime(x) (x)