]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
file.c: delete utimes stub implementation
authorStefan Teodorescu <stefanl.teodorescu@gmail.com>
Thu, 28 Nov 2019 14:02:49 +0000 (16:02 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 28 Nov 2019 15:03:20 +0000 (17:03 +0200)
Since utimes (and other related functions) have been implemented, this
stub doesn't make sense anymore. Deleting it to prevent double
definition, which produced a linker error.

Signed-off-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
file.c

diff --git a/file.c b/file.c
index ae9783700daf80cdbf0b9ab6ef95191e6a7bdcb3..7a6e04640a5aed2c1173455f0ebcc11555964c2a 100644 (file)
--- a/file.c
+++ b/file.c
@@ -79,12 +79,6 @@ int select(int nfds, fd_set *readfds __unused, fd_set *writefds __unused,
 }
 #endif /* !CONFIG_LWIP_SOCKET */
 
-int utimes(const char *filename __unused,
-               const struct timeval times[2] __unused)
-{
-       return 0;
-}
-
 char *realpath(const char *restrict file_name, char *restrict resolved_name)
 {
        return 0;