Skip to content

Commit 956d86d

Browse files
kusmagitster
authored andcommitted
mingw: give waitpid the correct signature
POSIX says that last parameter to waitpid should be 'int', so let's make it so. Signed-off-by: Erik Faye-Lund <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a8d05d7 commit 956d86d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ char *getpass(const char *prompt)
17051705
return strbuf_detach(&buf, NULL);
17061706
}
17071707

1708-
pid_t waitpid(pid_t pid, int *status, unsigned options)
1708+
pid_t waitpid(pid_t pid, int *status, int options)
17091709
{
17101710
HANDLE h = OpenProcess(SYNCHRONIZE | PROCESS_QUERY_INFORMATION,
17111711
FALSE, pid);

compat/mingw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static inline int mingw_mkdir(const char *path, int mode)
120120
#define mkdir mingw_mkdir
121121

122122
#define WNOHANG 1
123-
pid_t waitpid(pid_t pid, int *status, unsigned options);
123+
pid_t waitpid(pid_t pid, int *status, int options);
124124

125125
#define kill mingw_kill
126126
int mingw_kill(pid_t pid, int sig);

0 commit comments

Comments
 (0)