Changeset 1859 for zzuf


Ignore:
Timestamp:
Nov 3, 2007, 12:01:09 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Fix a bug in the -p handling that made it opt-out instead of opt-in.
  • Don’t bother using AF_UNIX, it doesn’t have ports.
Location:
zzuf/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/fd.c

    r1858 r1859  
    100100}
    101101
    102 void _zz_ports(char const *list)
     102void _zz_ports(char const *portlist)
    103103{   
    104     ports = _zz_allocrange(list, static_ports);
    105 }
    106 
    107 void _zz_list(char const *list)
     104    ports = _zz_allocrange(portlist, static_ports);
     105}
     106
     107void _zz_list(char const *fdlist)
    108108{   
    109     list = _zz_allocrange(list, static_list);
     109    list = _zz_allocrange(fdlist, static_list);
    110110}
    111111
     
    229229int _zz_portwatched(int port)
    230230{
     231    if(!ports)
     232        return 1;
     233
    231234    return _zz_isinrange(port, ports);
    232235}
  • zzuf/trunk/src/lib-fd.c

    r1858 r1859  
    211211        case AF_INET6:
    212212#endif
    213 #if defined AF_UNIX
    214         case AF_UNIX:
    215 #endif
    216213        case AF_UNSPEC:
    217214            port = ntohs(in->sin_port);
Note: See TracChangeset for help on using the changeset viewer.