Skip to contentSkip to conversation

syscalls/fcntl14: Remove unneeded time() declaration.

PATCH New Steve Ellcey 2 participants 2 messages Mar 1, 2017 – Mar 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/fcntl14: Remove unneeded time() declaration.

The 'extern long time()' declaration conflicts with time.h which declares time() to be of type time_t which may or may not be long. This declaration causes a build failure on x86_64 if the file is compiled with the -mx32 flag.

---
 testcases/kernel/syscalls/fcntl/fcntl14.c | 2 --
 1 file changed, 2 deletions(-)
testcases/kernel/syscalls/fcntl/fcntl14.c +0 -2
index c61eb24..1799084 100644
@@ -775,8 +775,6 @@ void dochild(void)
 
 void run_test(int file_flag, int file_mode, int seek, int start, int end)
 {
-	extern long time();
-
 	fail = 0;
 
 	for (test = start; test < end; test++) {
Signature · 1 line
2.7.4