git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mingw: give waitpid the correct signature
@ 2011-12-08 19:39 Erik Faye-Lund
  0 siblings, 0 replies; only message in thread
From: Erik Faye-Lund @ 2011-12-08 19:39 UTC (permalink / raw)
  To: git; +Cc: msysgit

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>
---

Just a small clean-up I stumbled over...

 compat/mingw.c |    2 +-
 compat/mingw.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compat/mingw.c b/compat/mingw.c
index efdc703..a0ac487 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -1712,7 +1712,7 @@ char *getpass(const char *prompt)
 	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 fecf0d0..0ff1e04 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -120,7 +120,7 @@ static inline int mingw_mkdir(const char *path, int mode)
 #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);
-- 
1.7.7.1.msysgit.0.272.g9e47e

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-08 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08 19:39 [PATCH] mingw: give waitpid the correct signature Erik Faye-Lund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).