summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a8d05d7)
raw | patch | inline | side by side (parent: a8d05d7)
author | Erik Faye-Lund <kusmabite@gmail.com> | |
Thu, 8 Dec 2011 19:39:57 +0000 (20:39 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 9 Dec 2011 18:46:52 +0000 (10:46 -0800) |
POSIX says that last parameter to waitpid should be 'int',
so let's make it so.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
so let's make it so.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c | patch | blob | history | |
compat/mingw.h | patch | blob | history |
diff --git a/compat/mingw.c b/compat/mingw.c
index 8947418ce78faa3619779c12319c0dd99b1557d3..f899bf08394a9b4b940a311572ab0dc31bdf17de 100644 (file)
--- a/compat/mingw.c
+++ b/compat/mingw.c
return strbuf_detach(&buf, NULL);
}
-pid_t waitpid(pid_t pid, int *status, unsigned options)
+pid_t waitpid(pid_t pid, int *status, int options)
{
HANDLE h = OpenProcess(SYNCHRONIZE | PROCESS_QUERY_INFORMATION,
FALSE, pid);
diff --git a/compat/mingw.h b/compat/mingw.h
index ce9dd980eb211c0301c4008249c61fb0b09f1280..43e42f4481a371af5f886bdb0ce1cc789dfdb82e 100644 (file)
--- a/compat/mingw.h
+++ b/compat/mingw.h
#define mkdir mingw_mkdir
#define WNOHANG 1
-pid_t waitpid(pid_t pid, int *status, unsigned options);
+pid_t waitpid(pid_t pid, int *status, int options);
#define kill mingw_kill
int mingw_kill(pid_t pid, int sig);