Ignore:
Timestamp:
Mar 2, 2008, 12:52:07 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fix a few more warnings.
  • Remove -Wshadow from the warnings because it is too verbose for now.
  • Remove warning flags that have no meaning in C++.
Location:
abuse/trunk/src/net
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/include/tcpip.hpp

    r39 r40  
    4545  {
    4646    if (who->protocol_type()==IP &&
    47         !memcmp(&addr.sin_addr,& ((ip_address *)who)->addr.sin_addr,sizeof(addr.sin_addr)))
     47        !memcmp(&addr.sin_addr,& ((ip_address const *)who)->addr.sin_addr,sizeof(addr.sin_addr)))
    4848      return 1;
    4949    else return 0;
  • abuse/trunk/src/net/tcpip.cpp

    r39 r40  
    365365    // got a notification request "broadcast"
    366366    ip_address *addr;
     367    net_address *tmp;
    367368
    368369#ifdef TCPIP_DEBUG
     
    370371#endif
    371372
    372     len = notifier->read(buf, 512, (net_address**)&addr);
     373    len = notifier->read(buf, 512, &tmp);
     374    addr = (ip_address *)tmp;
    373375#ifdef TCPIP_DEBUG
    374376                if (len>0) {
     
    510512    // got a notification response
    511513    ip_address *addr;
     514    net_address *tmp;
    512515
    513516#ifdef TCPIP_DEBUG
     
    515518#endif
    516519
    517     len = responder->read(buf, 512, (net_address**)&addr);
     520    len = responder->read(buf, 512, &tmp);
     521    addr = (ip_address *)tmp;
    518522
    519523#ifdef TCPIP_DEBUG
Note: See TracChangeset for help on using the changeset viewer.