Fix Windows sc_pipe function names

The implementation name was incorrect (it was harmless, because they are
not used on Windows).
This commit is contained in:
Romain Vimont 2021-11-14 22:37:51 +01:00
parent 6a27062f48
commit 52cebe1597

View file

@ -168,7 +168,7 @@ sc_process_close(HANDLE handle) {
}
ssize_t
sc_read_pipe(HANDLE pipe, char *data, size_t len) {
sc_pipe_read(HANDLE pipe, char *data, size_t len) {
DWORD r;
if (!ReadFile(pipe, data, len, &r, NULL)) {
return -1;
@ -177,7 +177,7 @@ sc_read_pipe(HANDLE pipe, char *data, size_t len) {
}
void
sc_close_pipe(HANDLE pipe) {
sc_pipe_close(HANDLE pipe) {
if (!CloseHandle(pipe)) {
LOGW("Cannot close pipe");
}