Ignore:
Timestamp:
Aug 25, 2015 8:45:46 AM (9 years ago)
Author:
nanang
Message:

Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c

    r4537 r5170  
    3737}; 
    3838 
    39 static void on_read_complete(pj_ioqueue_key_t *key,  
     39static void on_read_complete(pj_ioqueue_key_t *ioq_key,  
    4040                             pj_ioqueue_op_key_t *op_key,  
    4141                             pj_ssize_t bytes_received) 
     
    6363                pj_memcpy(&send_rec->addr, &recv_rec->addr, recv_rec->addrlen); 
    6464                send_rec->addrlen = recv_rec->addrlen; 
    65                 rc = pj_ioqueue_sendto(key, &send_rec->op_key_,  
     65                rc = pj_ioqueue_sendto(ioq_key, &send_rec->op_key_, 
    6666                                       send_rec->buffer, &sent, 0, 
    6767                                       &send_rec->addr, send_rec->addrlen); 
     
    7676        if (!send_rec->is_pending) { 
    7777            bytes_received = recv_rec->size; 
    78             rc = pj_ioqueue_recvfrom(key, &recv_rec->op_key_,  
     78            rc = pj_ioqueue_recvfrom(ioq_key, &recv_rec->op_key_, 
    7979                                     recv_rec->buffer, &bytes_received, 0, 
    8080                                     &recv_rec->addr, &recv_rec->addrlen); 
     
    100100} 
    101101 
    102 static void on_write_complete(pj_ioqueue_key_t *key,  
     102static void on_write_complete(pj_ioqueue_key_t *ioq_key,  
    103103                              pj_ioqueue_op_key_t *op_key,  
    104104                              pj_ssize_t bytes_sent) 
     
    115115 
    116116    send_rec->is_pending = 0; 
    117     on_read_complete(key, &send_rec->peer->op_key_, 0); 
     117    on_read_complete(ioq_key, &send_rec->peer->op_key_, 0); 
    118118} 
    119119 
Note: See TracChangeset for help on using the changeset viewer.