[IRC-Dev CVS] Module ircdh: Change commited ircdh/include IPcheck.h,1.2,1.3 channel.h,1.4,1.5 ircd.h
Brought to you by:
zolty
Update of /cvsroot/irc-dev/ircdh/include In directory usw-pr-cvs1:/tmp/cvs-serv1402/ircdh/include Modified Files: IPcheck.h channel.h ircd.h ircd_defs.h ircd_log.h ircd_osdep.h ircd_signal.h list.h map.h match.h numeric.h packet.h res.h s_bsd.h s_conf.h s_debug.h s_misc.h s_numeric.h s_user.h send.h support.h userload.h whocmds.h whowas.h Log Message: Make indent Index: IPcheck.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/IPcheck.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IPcheck.h 15 Aug 2002 20:55:23 -0000 1.2 +++ IPcheck.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -8,11 +8,11 @@ #define INCLUDED_ipcheck_h #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* time_t, size_t */ +#include <sys/types.h> /* time_t, size_t */ #define INCLUDED_sys_types_h #endif #ifndef INCLUDED_netinet_in_h -#include <netinet/in.h> /* in_addr */ +#include <netinet/in.h> /* in_addr */ #define INCLUDED_netinet_in_h #endif Index: channel.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/channel.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- channel.h 18 Aug 2002 22:49:41 -0000 1.4 +++ channel.h 18 Aug 2002 22:59:22 -0000 1.5 @@ -22,7 +22,7 @@ #ifndef INCLUDED_channel_h #define INCLUDED_channel_h #ifndef INCLUDED_ircd_defs_h -#include "ircd_defs.h" /* NICKLEN */ +#include "ircd_defs.h" /* NICKLEN */ #endif #ifndef INCLUDED_sys_types_h #include <sys/types.h> Index: ircd.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/ircd.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ircd.h 18 Aug 2002 22:49:41 -0000 1.3 +++ ircd.h 18 Aug 2002 22:59:22 -0000 1.4 @@ -9,10 +9,10 @@ #include "config.h" #endif #ifndef INCLUDED_struct_h -#include "struct.h" /* struct Client */ +#include "struct.h" /* struct Client */ #endif #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* size_t, time_t */ +#include <sys/types.h> /* size_t, time_t */ #endif #include "runmalloc.h" @@ -58,7 +58,7 @@ extern int GlobalRestartFlag; extern time_t nextping; extern char *configfile; -extern int debuglevel; +extern int debuglevel; extern char *debugmode; /* Borrar cuando sea necesario */ Index: ircd_defs.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/ircd_defs.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ircd_defs.h 15 Aug 2002 20:55:23 -0000 1.1 +++ ircd_defs.h 18 Aug 2002 22:59:22 -0000 1.2 @@ -101,11 +101,10 @@ * BUFSIZE is exactly long enough to hold one protocol message (RFC 1459) * including the line termination (\r\n). */ -#define BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */ +#define BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */ #define MAXTARGETS 20 #define STARTTARGETS 10 #define RESERVEDTARGETS 12 #endif /* INCLUDED_ircd_defs_h */ - Index: ircd_log.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/ircd_log.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ircd_log.h 18 Aug 2002 22:49:41 -0000 1.1 +++ ircd_log.h 18 Aug 2002 22:59:22 -0000 1.2 @@ -37,11 +37,10 @@ extern void open_log(const char *process_name); extern void close_log(void); extern void set_log_level(int level); -extern int get_log_level(void); +extern int get_log_level(void); extern void ircd_log(int priority, const char *fmt, ...); -extern void ircd_log_kill(const struct Client *victim, const struct Client *killer, - const char *inpath, const char *path); +extern void ircd_log_kill(const struct Client *victim, + const struct Client *killer, const char *inpath, const char *path); #endif /* INCLUDED_ircd_log_h */ - Index: ircd_osdep.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/ircd_osdep.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ircd_osdep.h 18 Aug 2002 22:49:41 -0000 1.1 +++ ircd_osdep.h 18 Aug 2002 22:59:22 -0000 1.2 @@ -20,7 +20,7 @@ * Client struct. When passed as a parameter, the pointer just needs * to be forwarded to the enumeration function. */ -typedef void (*EnumFn)(struct Client *, const char *msg); +typedef void (*EnumFn) (struct Client *, const char *msg); extern int os_disable_options(int fd); extern int os_get_rusage(struct Client *cptr, int uptime, EnumFn enumerator); @@ -28,12 +28,11 @@ extern int os_get_sockname(int fd, struct sockaddr_in *sin_out); extern int os_get_peername(int fd, struct sockaddr_in *sin_out); extern IOResult os_recv_nonb(int fd, char *buf, unsigned int length, - unsigned int *length_out); + unsigned int *length_out); extern IOResult os_send_nonb(int fd, const char *buf, unsigned int length, - unsigned int *length_out); + unsigned int *length_out); extern IOResult os_recvfrom_nonb(int fd, char *buf, unsigned int len, - unsigned int *length_out, - struct sockaddr_in *from_out); + unsigned int *length_out, struct sockaddr_in *from_out); extern int os_connect_nonb(int fd, const struct sockaddr_in *sin); extern int os_set_fdlimit(unsigned int max_descriptors); extern int os_set_listen(int fd, int backlog); Index: ircd_signal.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/ircd_signal.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ircd_signal.h 18 Aug 2002 22:49:41 -0000 1.1 +++ ircd_signal.h 18 Aug 2002 22:59:22 -0000 1.2 @@ -9,6 +9,3 @@ extern void setup_signals(void); #endif /* INCLUDED_ircd_signal_h */ - - - Index: list.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/list.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- list.h 15 Aug 2002 20:55:23 -0000 1.2 +++ list.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -6,7 +6,7 @@ #ifndef INCLUDED_list_h #define INCLUDED_list_h #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* time_t, size_t */ +#include <sys/types.h> /* time_t, size_t */ #define INCLUDED_sys_types_h #endif @@ -95,4 +95,3 @@ extern void free_watch(struct Watch *wptr); #endif /* INCLUDED_list_h */ - Index: map.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/map.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- map.h 15 Aug 2002 20:55:23 -0000 1.2 +++ map.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -15,6 +15,7 @@ /* borrar */ extern int m_map(aClient *cptr, aClient *sptr, int parc, char *parv[]); -void dump_map(struct Client *cptr, struct Client *server, char *mask, int prompt_length); +void dump_map(struct Client *cptr, struct Client *server, char *mask, + int prompt_length); #endif /* INCLUDED_map_h */ Index: match.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/match.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- match.h 15 Aug 2002 20:55:23 -0000 1.2 +++ match.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -6,11 +6,11 @@ #ifndef INCLUDED_match_h #define INCLUDED_match_h #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* XXX - broken BSD system headers */ +#include <sys/types.h> /* XXX - broken BSD system headers */ #define INCLUDED_sys_types_h #endif #ifndef INCLUDED_netinet_in_h -#include <netinet/in.h> /* struct in_addr */ +#include <netinet/in.h> /* struct in_addr */ #define INCLUDED_netinet_in_h #endif @@ -50,4 +50,3 @@ extern int matchcompIP(struct in_mask *imask, const char *mask); #endif /* INCLUDED_match_h */ - Index: numeric.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/numeric.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- numeric.h 15 Aug 2002 23:10:14 -0000 1.3 +++ numeric.h 18 Aug 2002 22:59:22 -0000 1.4 @@ -133,7 +133,7 @@ #define ERR_NEEDREGGEDNICK 477 /* DalNet & Undernet Extention */ #define ERR_BANLISTFULL 478 /* Undernet extension */ #define ERR_BADCHANNAME 479 /* EFNet extension */ - /* 479 Undernet extension badchan */ + /* 479 Undernet extension badchan */ /* ERR_LINKFAIL 479 Unreal */ /* ERR_CANNOTKNOCK 480 Unreal */ /* ERR_NOULINE 480 Austnet */ @@ -203,7 +203,7 @@ /* ERR_UPASSNOTSET 554 Undernet extension */ /* ERR_LASTERROR 555 Undernet extension */ - + /* * Numberic replies from server commands. * These are currently in the range 200-399. @@ -259,7 +259,7 @@ #define RPL_TOPICWHOTIME 333 /* Undernet extension */ #define RPL_LISTUSAGE 334 /* Undernet extension */ -/* RPL_WHOISACTUALLY 338 Undernet & Dalnet extension */ +/* RPL_WHOISACTUALLY 338 Undernet & Dalnet extension */ /* RPL_CHANPASSOK 338 IRCnet extension */ /* RPL_BADCHANPASS 339 IRCnet & Dalnet extension */ #define RPL_USERIP 340 /* Undernet extension */ Index: packet.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/packet.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- packet.h 15 Aug 2002 20:55:23 -0000 1.2 +++ packet.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -22,4 +22,3 @@ extern int client_dopacket(struct Client *cptr, size_t length); #endif /* INCLUDED_packet_h */ - Index: res.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/res.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- res.h 15 Aug 2002 20:55:23 -0000 1.2 +++ res.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -7,7 +7,7 @@ #define INCLUDED_res_h #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* time_t */ +#include <sys/types.h> /* time_t */ #define INCLUDED_sys_types_h #endif Index: s_bsd.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/s_bsd.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- s_bsd.h 18 Aug 2002 22:49:41 -0000 1.3 +++ s_bsd.h 18 Aug 2002 22:59:22 -0000 1.4 @@ -9,7 +9,7 @@ //#include "config.h" #endif #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* size_t, time_t */ +#include <sys/types.h> /* size_t, time_t */ #define INCLUDED_sys_types_h #endif Index: s_conf.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/s_conf.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- s_conf.h 15 Aug 2002 20:55:23 -0000 1.3 +++ s_conf.h 18 Aug 2002 22:59:22 -0000 1.4 @@ -6,7 +6,7 @@ #ifndef INCLUDED_s_conf_h #define INCLUDED_s_conf_h #ifndef INCLUDED_time_h -#include <time.h> /* struct tm */ +#include <time.h> /* struct tm */ #define INCLUDED_time_h #endif #ifndef INCLUDED_sys_types_h @@ -14,7 +14,7 @@ #define INCLUDED_sys_types_h #endif #ifndef INCLUDED_netinet_in_h -#include <netinet/in.h> /* struct in_addr */ +#include <netinet/in.h> /* struct in_addr */ #define INCLUDED_netinet_in_h #endif @@ -125,12 +125,12 @@ /* * Proto types */ -extern struct ConfItem *attach_confs_byhost(struct Client *cptr, - const char *host, int statmask); -extern struct ConfItem *find_conf_byhost(struct SLink* lp, const char *host, - int statmask); -extern struct ConfItem *find_conf_byname(struct SLink* lp, const char *name, - int statmask); +extern struct ConfItem *attach_confs_byhost(struct Client *cptr, + const char *host, int statmask); +extern struct ConfItem *find_conf_byhost(struct SLink *lp, const char *host, + int statmask); +extern struct ConfItem *find_conf_byname(struct SLink *lp, const char *name, + int statmask); extern struct ConfItem *conf_find_server(const char *name); const char *conf_eval_crule(struct ConfItem *conf); @@ -141,10 +141,9 @@ extern struct ConfItem *find_admin(void); extern struct ConfItem *find_me(void); extern struct ConfItem *find_conf_exact(const char *name, - const char *user, - const char *host, int statmask); + const char *user, const char *host, int statmask); extern enum AuthorizationCheckResult conf_check_client(struct Client *cptr); -extern int conf_check_server(struct Client *cptr); +extern int conf_check_server(struct Client *cptr); extern struct ConfItem *find_conf_name(const char *name, int statmask); /* viejos */ @@ -159,7 +158,7 @@ extern aConfItem *attach_confs_host(aClient *cptr, char *host, int statmask); extern aConfItem *find_conf(Link *lp, const char *name, int statmask); extern aConfItem *find_conf_ip(Link *lp, char *ip, char *user, int statmask); -extern struct ConfItem* find_conf_name(const char* name, int statmask); +extern struct ConfItem *find_conf_name(const char *name, int statmask); /* Viejos */ extern int rehash(struct Client *cptr, int sig); @@ -168,7 +167,7 @@ extern int find_kill(struct Client *cptr); extern int find_restrict(struct Client *cptr); extern int m_killcomment(struct Client *sptr, char *parv, char *filename); -extern struct MotdItem *read_motd(const char* motdfile); +extern struct MotdItem *read_motd(const char *motdfile); /* MIRAR */ #ifdef ESNET_NEG Index: s_debug.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/s_debug.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- s_debug.h 18 Aug 2002 22:49:41 -0000 1.3 +++ s_debug.h 18 Aug 2002 22:59:22 -0000 1.4 @@ -9,7 +9,7 @@ #include "config.h" #endif #ifndef INCLUDED_ircd_defs_h -#include "ircd_defs.h" /* Needed for HOSTLEN */ +#include "ircd_defs.h" /* Needed for HOSTLEN */ #endif #ifndef INCLUDED_stdarg_h #include <stdarg.h> Index: s_misc.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/s_misc.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- s_misc.h 15 Aug 2002 20:55:23 -0000 1.2 +++ s_misc.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -6,11 +6,11 @@ #ifndef INCLUDED_s_misc_h #define INCLUDED_s_misc_h #ifndef INCLUDED_stdarg_h -#include <stdarg.h> /* va_list */ +#include <stdarg.h> /* va_list */ #define INCLUDED_stdarg_h #endif #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* time_t */ +#include <sys/types.h> /* time_t */ #define INCLUDED_sys_types_h #endif @@ -55,7 +55,7 @@ unsigned int is_abad; /* bad auth requests */ unsigned int is_loc; /* local connections made */ unsigned int uping_recv; /* UDP Pings received */ -unsigned int is_udp; /* PROVISIONAL */ + unsigned int is_udp; /* PROVISIONAL */ }; /* @@ -74,7 +74,8 @@ extern char *get_visible_name(aClient *acptr, aClient *sptr); #endif extern int exit_client_msg(aClient *cptr, aClient *bcptr, - aClient *sptr, const char *pattern, ...) __attribute__ ((format(printf, 4, 5))); + aClient *sptr, const char *pattern, ...) + __attribute__ ((format(printf, 4, 5))); /* de momento no extern int exit_client_msg(struct Client *cptr, struct Client *bcptr, struct Client *sptr, const char *pattern, ...); Index: s_numeric.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/s_numeric.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- s_numeric.h 15 Aug 2002 20:55:23 -0000 1.2 +++ s_numeric.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -12,7 +12,7 @@ * Prototypes */ -extern int do_numeric(int numeric, int nnn, struct Client *cptr, struct Client *sptr, - int parc, char *parv[]); +extern int do_numeric(int numeric, int nnn, struct Client *cptr, + struct Client *sptr, int parc, char *parv[]); #endif /* INCLUDED_s_numeric_h */ Index: s_user.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/s_user.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- s_user.h 15 Aug 2002 20:55:23 -0000 1.2 +++ s_user.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -47,7 +47,7 @@ extern struct SLink *opsarray[]; -typedef char* (*InfoFormatter)(struct Client* who, char* buf); +typedef char *(*InfoFormatter) (struct Client * who, char *buf); /* * Prototypes Index: send.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/send.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- send.h 18 Aug 2002 22:49:41 -0000 1.3 +++ send.h 18 Aug 2002 22:59:22 -0000 1.4 @@ -6,8 +6,8 @@ #ifndef INCLUDED_send_h #define INCLUDED_send_h #ifndef INCLUDED_stdarg_h -#include <stdarg.h> /* va_list */ -#define INCLUDED_stdarg_h +#include <stdarg.h> /* va_list */ +#define INCLUDED_stdarg_h #endif #include "h.h" @@ -41,7 +41,7 @@ __attribute__ ((format(printf, 3, 4))); extern void sendto_prefix_one(aClient *to, aClient *from, char *pattern, ...) __attribute__ ((format(printf, 3, 4))); -extern void flush_connections(struct Client* cptr); +extern void flush_connections(struct Client *cptr); extern void send_queued(aClient *to); extern void vsendto_one(aClient *to, char *pattern, va_list vl); extern void sendto_channel_butone(aClient *one, aClient *from, Index: support.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/support.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- support.h 15 Aug 2002 20:55:23 -0000 1.2 +++ support.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -11,7 +11,7 @@ #endif #if 0 #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* broken BSD system headers */ +#include <sys/types.h> /* broken BSD system headers */ #define INCLUDED_sys_types_h #endif #endif /* 0 */ Index: userload.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/userload.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- userload.h 15 Aug 2002 20:55:23 -0000 1.2 +++ userload.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -48,4 +48,3 @@ extern struct current_load_st current_load; #endif /* INCLUDED_userload_h */ - Index: whocmds.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/whocmds.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- whocmds.h 15 Aug 2002 20:55:23 -0000 1.2 +++ whocmds.h 18 Aug 2002 22:59:22 -0000 1.3 @@ -87,13 +87,12 @@ /* * Prototypes */ -extern void do_who(struct Client* sptr, struct Client* acptr, struct Channel* repchan, - int fields, char* qrt); +extern void do_who(struct Client *sptr, struct Client *acptr, + struct Channel *repchan, int fields, char *qrt); /* Quitarlo en cuando sea posible */ -extern int m_who(aClient *cptr, aClient *sptr, int parc, char *parv[]); +extern int m_who(aClient *cptr, aClient *sptr, int parc, char *parv[]); extern int m_whois(aClient *cptr, aClient *sptr, int parc, char *parv[]); #endif /* INCLUDED_whocmds_h */ - Index: whowas.h =================================================================== RCS file: /cvsroot/irc-dev/ircdh/include/whowas.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- whowas.h 18 Aug 2002 22:49:41 -0000 1.4 +++ whowas.h 18 Aug 2002 22:59:22 -0000 1.5 @@ -21,7 +21,7 @@ #ifndef INCLUDED_whowas_h #define INCLUDED_whowas_h #ifndef INCLUDED_sys_types_h -#include <sys/types.h> /* size_t */ +#include <sys/types.h> /* size_t */ #define INCLUDED_sys_types_h #endif #include "h.h" @@ -65,7 +65,7 @@ /* * Proto types */ -extern struct Whowas* whowashash[]; +extern struct Whowas *whowashash[]; extern unsigned int hash_whowas_name(const char *name); @@ -75,6 +75,6 @@ extern void initwhowas(void); extern void count_whowas_memory(int *wwu, size_t *wwm, int *wwa, size_t *wwam); -extern int m_whowas(aClient *cptr, aClient *sptr, int parc, char *parv[]); //QUITARLO +extern int m_whowas(aClient *cptr, aClient *sptr, int parc, char *parv[]); //QUITARLO #endif /* INCLUDED_whowas_h */ |