source: packages/net/mini_snmpd_ipv6/patches/102-compile_fix.patch @ 20889

Last change on this file since 20889 was 20889, checked in by acoul, 6 years ago

fix mini_snmpd on ipv4. Create a separate mini_snmpd_ipv6 package (closes #6578 & #7094)

File size: 1.0 KB
  • mini_snmpd.c

    a b  
    134134        } else if (rv != g_udp_client.size) { 
    135135                lprintf(LOG_WARNING, "could not send packet to UDP client %s:%d: " 
    136136                        "only %d of %d bytes written\n", inet_ntoa(sockaddr.sin_addr), 
    137                         sockaddr.sin_port, rv, g_udp_client.size); 
     137                        sockaddr.sin_port, rv, (int) g_udp_client.size); 
    138138        } 
    139139#ifdef DEBUG 
    140140        dump_packet(&g_udp_client); 
     
    211211        } else if (rv != client->size) { 
    212212                lprintf(LOG_WARNING, "could not send packet to TCP client %s:%d: " 
    213213                        "only %d of %d bytes written\n", inet_ntoa(sockaddr.sin_addr), 
    214                         sockaddr.sin_port, rv, client->size); 
     214                        sockaddr.sin_port, rv, (int) client->size); 
    215215                close(client->sockfd); 
    216216                client->sockfd = -1; 
    217217                return; 
  • utils.c

    a b  
    106106                } 
    107107        } 
    108108        lprintf(LOG_DEBUG, "%s %u bytes %s %s:%d (%s)\n", 
    109                 client->outgoing ? "transmitted" : "received", client->size, 
     109                client->outgoing ? "transmitted" : "received", (int) client->size, 
    110110                client->outgoing ? "to" : "from", inet_ntoa(client_addr), 
    111111                ntohs(client->port), buffer); 
    112112} 
Note: See TracBrowser for help on using the repository browser.