[LTP] [PATCH] Remove unneeded time() declaration.
Steve Ellcey
sellcey@cavium.com
Tue Feb 28 22:35:19 CET 2017
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. The time() function does not appear
to be used anywhere in fcntl14 so I am not sure why the declaration
is there anyway.
---
testcases/kernel/syscalls/fcntl/fcntl14.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/testcases/kernel/syscalls/fcntl/fcntl14.c b/testcases/kernel/syscalls/fcntl/fcntl14.c
index c61eb24..1799084 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl14.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl14.c
@@ -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++) {
--
2.7.4
More information about the ltp
mailing list