From 27569a662f90d59859c25e858e85a8c0906c25ce Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 29 Apr 2015 11:26:03 +0000 Subject: [PATCH] - Removed trailing whitespaces git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5877 82007160-df01-0410-b94d-b575c5fd34c7 --- doc/reference.conf | 2 +- src/config-lexer.l | 5 ++--- src/firedns.c | 8 ++++---- src/irc.c | 6 +++--- src/memory.c | 6 +++--- src/opercmd.c | 16 ++++++++-------- src/scan.c | 17 ++++++++--------- 7 files changed, 29 insertions(+), 31 deletions(-) diff --git a/doc/reference.conf b/doc/reference.conf index c85243a..23d43d7 100644 --- a/doc/reference.conf +++ b/doc/reference.conf @@ -241,7 +241,7 @@ irc { /* * Text to send on connection, these can be stacked and will be sent in this order. - * + * * !!! UNREAL USERS PLEASE NOTE !!! * Unreal users will need PROTOCTL HCN to force hybrid connect * notices. diff --git a/src/config-lexer.l b/src/config-lexer.l index 44a194e..1d17e2d 100644 --- a/src/config-lexer.l +++ b/src/config-lexer.l @@ -85,7 +85,6 @@ whitespace [ \t\r]* return STRING; } } - } AWAY { return AWAY; } @@ -195,7 +194,7 @@ ROUTER { [0-9]+ { - yylval.number=atoi(yytext); + yylval.number=atoi(yytext); return NUMBER; } @@ -242,7 +241,7 @@ OFF { {whitespace} /* ignore whitespace */; -. return yytext[0]; +. return yytext[0]; %% diff --git a/src/firedns.c b/src/firedns.c index 8b2c896..6664c91 100644 --- a/src/firedns.c +++ b/src/firedns.c @@ -1,20 +1,20 @@ /* firedns.c - firedns library Copyright (C) 2002 Ian Gulliver - + This file has been gutted and mucked with for use in BOPM - see the real library at http://ares.penguinhosting.net/~ian/ before you judge firedns based on this.. - + This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA diff --git a/src/irc.c b/src/irc.c index 26141a8..1628b63 100644 --- a/src/irc.c +++ b/src/irc.c @@ -160,9 +160,9 @@ irc_cycle(void) * * Resolve IRC host and perform other initialization. * - * Parameters: + * Parameters: * None - * + * * Return: * None */ @@ -244,7 +244,7 @@ irc_init(void) * Parameters: * data: Format of data to send * ...: varargs to format with - * + * * Return: NONE */ void diff --git a/src/memory.c b/src/memory.c index 3d6f73d..d095e86 100644 --- a/src/memory.c +++ b/src/memory.c @@ -26,13 +26,13 @@ /* xcalloc - * + * * A wrapper function for malloc(), for catching memory issues * and error handling. * * Parameters * bytes: amount in bytes to allocate - * + * * Return: * Pointer to allocated memory */ @@ -53,7 +53,7 @@ void *xcalloc(size_t bytes) * * Parameters: * var: pointer to memory to free - * + * * Return: * None */ diff --git a/src/opercmd.c b/src/opercmd.c index e1fb114..55ce88b 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -62,7 +62,7 @@ static const struct OperCommandHash COMMAND_TABLE[] = /* command_init - * + * * Do command initialization * * Parameters: NONE @@ -81,7 +81,7 @@ command_init(void) * Perform ~1 second actions. * * Parameters: NONE - * + * * Return: NONE * */ @@ -189,9 +189,9 @@ command_parse(char *command, const struct ChannelConf *target, } /* command_create - * + * * Create a Command struct. - * + * * Parameters: * type: Index in COMMAND_TABLE * param: Parameters to the command (NULL if there are not any) @@ -220,12 +220,12 @@ command_create(const struct OperCommandHash *tab, char *param, char *irc_nick, } /* command_free - * + * * Free a command struct * * Parameters: * command: Command struct to free - * + * * Return: NONE */ static void @@ -243,12 +243,12 @@ command_free(struct Command *command) * A 302 reply was received. The reply is parsed to check if the * user was an operator. If so any commands they had queued are * executed. - * + * * Parameters: * reply: Reply to USERHOST (ex: :grifferz*=+goats@pc-62-30-219-54-pb.blueyonder.co.uk) * * Return: NONE - * + * */ void command_userhost(const char *reply) diff --git a/src/scan.c b/src/scan.c index e672d2c..5faf222 100644 --- a/src/scan.c +++ b/src/scan.c @@ -99,7 +99,7 @@ scan_cycle(void) } /* scan_timer - * + * * Perform actions that are to be performed every ~1 second. * * Parameters: NONE @@ -166,7 +166,7 @@ scan_gettype(int protocol) Parameters: None - + Return: None */ @@ -754,7 +754,7 @@ scan_negative(const struct scan_struct *ss) /* scan_irckline * - * ss has been found as a positive host and is to be klined. + * ss has been found as a positive host and is to be klined. * Format a kline message using the kline message provided * as a format, then pass it to irc_send() to be sent to the remote server. * @@ -762,9 +762,8 @@ scan_negative(const struct scan_struct *ss) * ss: scan_struct containing information regarding host to be klined * format: kline message to format * type: type of proxy found (%t format character) - * - * Return: NONE * + * Return: NONE */ static void scan_irckline(const struct scan_struct *ss, const char *format, const char *type) @@ -968,15 +967,15 @@ scan_manual(char *param, const struct ChannelConf *target) } /* scan_checkexempt - * + * * Check mask against exempt list. - * + * * Parameters: * mask: Mask to check - * + * * Return: * 1 if mask is in list - * 0 if mask is not in list + * 0 if mask is not in list */ int scan_checkexempt(const char *mask, const char *ipmask) -- 2.30.2