Change uv_pipe_*() prototypes from char* to const char*.
This commit is contained in:
parent
6a67b51b4c
commit
f852c517a1
@ -304,11 +304,11 @@ struct uv_pipe_s {
|
||||
|
||||
int uv_pipe_init(uv_pipe_t* handle);
|
||||
|
||||
int uv_pipe_bind(uv_pipe_t* handle, char* name);
|
||||
int uv_pipe_bind(uv_pipe_t* handle, const char* name);
|
||||
|
||||
int uv_pipe_listen(uv_pipe_t* handle, int instanceCount, uv_connection_cb cb);
|
||||
|
||||
int uv_pipe_connect(uv_req_t* req, char* name);
|
||||
int uv_pipe_connect(uv_req_t* req, const char* name);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -1605,7 +1605,7 @@ int uv_pipe_init(uv_pipe_t* handle) {
|
||||
}
|
||||
|
||||
|
||||
int uv_pipe_bind(uv_pipe_t* handle, char* name) {
|
||||
int uv_pipe_bind(uv_pipe_t* handle, const char* name) {
|
||||
assert(0 && "implement me");
|
||||
}
|
||||
|
||||
@ -1615,6 +1615,6 @@ int uv_pipe_listen(uv_pipe_t* handle, int instanceCount, uv_connection_cb cb) {
|
||||
}
|
||||
|
||||
|
||||
int uv_pipe_connect(uv_req_t* req, char* name) {
|
||||
int uv_pipe_connect(uv_req_t* req, const char* name) {
|
||||
assert(0 && "implement me");
|
||||
}
|
||||
|
||||
@ -2937,7 +2937,7 @@ int uv_pipe_init(uv_pipe_t* handle) {
|
||||
|
||||
/* Creates a pipe server. */
|
||||
/* TODO: make this work with UTF8 name */
|
||||
int uv_pipe_bind(uv_pipe_t* handle, char* name) {
|
||||
int uv_pipe_bind(uv_pipe_t* handle, const char* name) {
|
||||
if (!name) {
|
||||
return -1;
|
||||
}
|
||||
@ -3034,7 +3034,7 @@ error:
|
||||
}
|
||||
|
||||
/* TODO: make this work with UTF8 name */
|
||||
int uv_pipe_connect(uv_req_t* req, char* name) {
|
||||
int uv_pipe_connect(uv_req_t* req, const char* name) {
|
||||
int errno;
|
||||
DWORD mode;
|
||||
uv_pipe_t* handle = (uv_pipe_t*)req->handle;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user