Change uv_pipe_*() prototypes from char* to const char*.

This commit is contained in:
Ben Noordhuis 2011-07-13 00:12:30 +02:00
parent 6a67b51b4c
commit f852c517a1
3 changed files with 6 additions and 6 deletions

View File

@ -304,11 +304,11 @@ struct uv_pipe_s {
int uv_pipe_init(uv_pipe_t* handle); 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_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);
/* /*

View File

@ -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"); 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"); assert(0 && "implement me");
} }

View File

@ -2937,7 +2937,7 @@ int uv_pipe_init(uv_pipe_t* handle) {
/* Creates a pipe server. */ /* Creates a pipe server. */
/* TODO: make this work with UTF8 name */ /* 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) { if (!name) {
return -1; return -1;
} }
@ -3034,7 +3034,7 @@ error:
} }
/* TODO: make this work with UTF8 name */ /* 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; int errno;
DWORD mode; DWORD mode;
uv_pipe_t* handle = (uv_pipe_t*)req->handle; uv_pipe_t* handle = (uv_pipe_t*)req->handle;