Changeset 60e4df3 for lib/ftutil.h


Ignore:
Timestamp:
2010-03-17T23:23:27Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c1a3c27
Parents:
e8c8d00
Message:

Small cleanup. The max_packet_size variable doesn't seem to be read
anywhere, and reworked string handling in ft_listen() a little bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ftutil.h

    re8c8d00 r60e4df3  
    2626#endif
    2727
     28/* Some ifdefs for ulibc and apparently also BSD (Thanks to Whoopie) */
     29#ifndef HOST_NAME_MAX
     30#include <sys/param.h>
     31#ifdef MAXHOSTNAMELEN
     32#define HOST_NAME_MAX MAXHOSTNAMELEN
     33#else
     34#define HOST_NAME_MAX 255
     35#endif
     36#endif
     37
     38/* This function should be used with care. host should be AT LEAST a
     39   char[HOST_NAME_MAX+1] and port AT LEAST a char[6]. */
    2840int ft_listen( struct sockaddr_storage *saddr_ptr, char *host, char *port, int for_bitlbee_client, char **errptr );
Note: See TracChangeset for help on using the changeset viewer.