include: const-ify arguments to uv_getnameinfo_cb

This commit is contained in:
Saúl Ibarra Corretgé 2014-06-26 22:46:39 +02:00
parent 570caf04db
commit d4c1228d15
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);