Skip to contentSkip to conversation

mingw: give waitpid the correct signature

PATCH New Erik Faye-Lund 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mingw: give waitpid the correct signature

POSIX says that last parameter to waitpid should be 'int', so let's make it so.

---

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

 compat/mingw.c |    2 +-
 compat/mingw.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
compat/mingw.c +1 -1
index efdc703..a0ac487 100644
@@ -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);
compat/mingw.h +1 -1
index fecf0d0..0ff1e04 100644
@@ -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);
Signature · 1 line
1.7.7.1.msysgit.0.272.g9e47e