include: const-ify arguments to uv_getnameinfo_cb
This commit is contained in:
parent
570caf04db
commit
d4c1228d15
@ -429,8 +429,8 @@ typedef void (*uv_getaddrinfo_cb)(uv_getaddrinfo_t* req,
|
||||
struct addrinfo* res);
|
||||
typedef void (*uv_getnameinfo_cb)(uv_getnameinfo_t* req,
|
||||
int status,
|
||||
char* hostname,
|
||||
char* service);
|
||||
const char* hostname,
|
||||
const char* service);
|
||||
|
||||
typedef struct {
|
||||
long tv_sec;
|
||||
|
||||
@ -36,8 +36,8 @@ static uv_getnameinfo_t req;
|
||||
|
||||
static void getnameinfo_req(uv_getnameinfo_t* handle,
|
||||
int status,
|
||||
char* hostname,
|
||||
char* service) {
|
||||
const char* hostname,
|
||||
const char* service) {
|
||||
ASSERT(handle != NULL);
|
||||
ASSERT(status == 0);
|
||||
ASSERT(hostname != NULL);
|
||||
|
||||
@ -129,8 +129,8 @@ static void getaddrinfo_cb(uv_getaddrinfo_t* req,
|
||||
|
||||
static void getnameinfo_cb(uv_getnameinfo_t* handle,
|
||||
int status,
|
||||
char* hostname,
|
||||
char* service) {
|
||||
const char* hostname,
|
||||
const char* service) {
|
||||
ASSERT(status == UV_EAI_CANCELED);
|
||||
ASSERT(hostname == NULL);
|
||||
ASSERT(service == NULL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user