Commit c09442f1 authored by Simon Morlat's avatar Simon Morlat

fix compilation warning

parent c390646f
......@@ -28,7 +28,7 @@
static belle_sip_stack_t *stack;
static void resolver_callback(void *data, const char *queried_name, struct addrinfo *ai_list){
static void resolver_callback(void *data, const char *queried_name, struct addrinfo *ai_list, unsigned int ttl){
int err;
struct addrinfo *ai_it;
char name[NI_MAXHOST];
......@@ -39,7 +39,7 @@ static void resolver_callback(void *data, const char *queried_name, struct addri
if (err!=0){
fprintf(stderr,"getnameinfo error: %s",gai_strerror(err));
}else{
printf("\t%s %s\n",name,port);
printf("\t%s %s (ttl:%u)\n",name,port,ttl);
}
}
belle_sip_main_loop_quit(belle_sip_stack_get_main_loop(stack));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment