Fix signature of fcntl() compatibility dummy
authorJohannes Sixt <j6t@kdbg.org>
Sat, 6 Mar 2010 15:40:40 +0000 (16:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Mar 2010 08:37:35 +0000 (00:37 -0800)
Obviously, this function was never called with two arguments in Windows
code sections, but this will be the case in a subsequent patch.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.h
index e81e752ed2716ac9fb4a6847f97db84764694b4c..3347362632f009b973690300cfa039c36ab407f0 100644 (file)
@@ -89,7 +89,7 @@ static inline int getuid()
 { return 1; }
 static inline struct passwd *getpwnam(const char *name)
 { return NULL; }
-static inline int fcntl(int fd, int cmd, long arg)
+static inline int fcntl(int fd, int cmd, ...)
 {
        if (cmd == F_GETFD || cmd == F_SETFD)
                return 0;