Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Remove all trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sariyamelody committed Jul 8, 2014
1 parent 6ca726b commit a8d683d
Show file tree
Hide file tree
Showing 154 changed files with 421 additions and 421 deletions.
2 changes: 1 addition & 1 deletion contrib/anope_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static void ATHEME_CONVERT_write_channels(void)
(unsigned long)ci->time_registered,
(unsigned long)ci->last_used, athemeflags,
athememon, athememoff,
ci->mlock_limit ? ci->mlock_limit : 0,
ci->mlock_limit ? ci->mlock_limit : 0,
ci->mlock_key ? ci->mlock_key : "");

mcout++;
Expand Down
2 changes: 1 addition & 1 deletion include/culture.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Rights to this code are as documented in doc/LICENSE.
*
* Message translation stuff.
*
*
*/

#ifndef CULTURE_H
Expand Down
2 changes: 1 addition & 1 deletion include/md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ typedef struct md5_state_s {
} md5_state_t;

#ifdef __cplusplus
extern "C"
extern "C"
{
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/res.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "atheme.h"
#include "reslib.h"

/* Maximum number of nameservers in /etc/resolv.conf we care about
/* Maximum number of nameservers in /etc/resolv.conf we care about
* In hybrid, this was 2 -- but in Charybdis, we want to track
* a few more than that ;) --nenolod
*/
Expand Down
8 changes: 4 additions & 4 deletions libathemecore/account.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void myuser_set_email(myuser_t *mu, const char *newemail)
*
* Side Effects:
* - none
*/
*/
myuser_t *myuser_find_ext(const char *name)
{
user_t *u;
Expand Down Expand Up @@ -1773,7 +1773,7 @@ chanacs_t *chanacs_open(mychan_t *mychan, myentity_t *mt, const char *hostmask,

/* wrt the second assert: only one of mu or hostmask can be not-NULL --nenolod */
return_val_if_fail(mychan != NULL, false);
return_val_if_fail((mt != NULL && hostmask == NULL) || (mt == NULL && hostmask != NULL), false);
return_val_if_fail((mt != NULL && hostmask == NULL) || (mt == NULL && hostmask != NULL), false);

if (mt != NULL)
{
Expand Down Expand Up @@ -1850,7 +1850,7 @@ bool chanacs_change(mychan_t *mychan, myentity_t *mt, const char *hostmask, unsi

/* wrt the second assert: only one of mu or hostmask can be not-NULL --nenolod */
return_val_if_fail(mychan != NULL, false);
return_val_if_fail((mt != NULL && hostmask == NULL) || (mt == NULL && hostmask != NULL), false);
return_val_if_fail((mt != NULL && hostmask == NULL) || (mt == NULL && hostmask != NULL), false);
return_val_if_fail(addflags != NULL && removeflags != NULL, false);

if (mt != NULL)
Expand Down Expand Up @@ -1948,7 +1948,7 @@ static int expire_myuser_cb(myentity_t *mt, void *unused)
/* If they're logged in, update lastlogin time.
* To decrease db traffic, may want to only do
* this if the account would otherwise be
* deleted. -- jilles
* deleted. -- jilles
*/
if (MOWGLI_LIST_LENGTH(&mu->logins) > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion libathemecore/arc4random.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ arc4_stir(struct arc4_stream *as)
if (fd >= 0) {
n = read(fd, rdat.rnd, sizeof(rdat.rnd));
close(fd);
}
}
/* fd < 0? Ah, what the heck. We'll just take whatever was on the
* stack... */

Expand Down
4 changes: 2 additions & 2 deletions libathemecore/atheme.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* atheme.c: Initialization and startup of the services system
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/auth.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* auth.c: Authentication.
*
* Copyright (c) 2005-2009 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2009 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/authcookie.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* authcookie.c: Remote authentication ticket management
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
6 changes: 3 additions & 3 deletions libathemecore/channels.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* channels.c: Channel event and state tracking
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -157,7 +157,7 @@ void channel_delete(channel_t *c)
return_if_fail(c != NULL);

slog(LG_DEBUG, "channel_delete(): %s", c->name);

modestack_finalize_channel(c);

/* If this is called from uplink_close(), there may still be services
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/cidr.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* cidr.c: CIDR matching.
*
* Most code in this file has been copied from ratbox, src/match.c and
Expand All @@ -8,7 +8,7 @@
*
* Copyright (c) 1996-2002 Hybrid Development Team
* Copyright (c) 2002-2005 ircd-ratbox development team
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/cmode.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* cmode.c: Channel mode change tracking.
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
8 changes: 4 additions & 4 deletions libathemecore/commandtree.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* commandtree.c: Management of services commands.
*
* Copyright (c) 2005-2010 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2010 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -167,7 +167,7 @@ void command_exec_split(service_t *svs, sourceinfo_t *si, const char *cmd, char
* inputs -
* si: The origin of the request.
* commandtree: The command tree being listed.
*
*
* outputs -
* A list of available commands.
*/
Expand Down Expand Up @@ -223,7 +223,7 @@ static bool string_in_list(const char *str, const char *name)
* origin: The origin of the request.
* commandtree: The command tree being listed.
* maincmds: The commands to list verbosely.
*
*
* outputs -
* A list of available commands.
*/
Expand Down
8 changes: 4 additions & 4 deletions libathemecore/conf.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* conf.c: Services-specific configuration processing.
*
* Copyright (c) 2005-2008 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2008 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -126,8 +126,8 @@ const char *get_conf_opts(void)
log_debug_enabled() ? "d" : "",
me.auth ? "e" : "",
config_options.flood_msgs ? "F" : "",
config_options.leave_chans ? "l" : "",
config_options.join_chans ? "j" : "",
config_options.leave_chans ? "l" : "",
config_options.join_chans ? "j" : "",
chansvs.changets ? "t" : "",
!match_mapping ? "R" : "",
config_options.raw ? "r" : "",
Expand Down
6 changes: 3 additions & 3 deletions libathemecore/confprocess.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* confprocess.c: Generic configuration processing.
*
* Copyright (c) 2005-2008 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2008 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -211,7 +211,7 @@ static void set_default(struct ConfTable *ct)
{
if (ct->flags & CONF_NO_REHASH && runflags & RF_REHASHING)
return;

switch (ct->type)
{
case CONF_UINT:
Expand Down
8 changes: 4 additions & 4 deletions libathemecore/connection.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* connection.c: Connection and I/O management
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -463,7 +463,7 @@ connection_t *connection_open_tcp(char *host, char *vhost, unsigned int port,
break;
case AF_INET6:
((struct sockaddr_in6 *) addr->ai_addr)->sin6_port = htons(port);
break;
break;
}

if ((connect(s, addr->ai_addr, addr->ai_addrlen) == -1) && ioerrno() != EINPROGRESS && ioerrno() != EINTR && ioerrno() != EWOULDBLOCK)
Expand Down Expand Up @@ -544,7 +544,7 @@ connection_t *connection_open_listener_tcp(char *host, unsigned int port,
break;
case AF_INET6:
((struct sockaddr_in6 *) addr->ai_addr)->sin6_port = htons(port);
break;
break;
}

if (bind(s, addr->ai_addr, addr->ai_addrlen) < 0)
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/ctcp-common.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* ctcp-common.c: Handling of CTCP commands.
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/culture.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* culture.c: Translation framework.
*
* Copyright (c) 2005-2009 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2009 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/datastream.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* datastream.c: Efficient handling of streams and packet queues.
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion libathemecore/entity.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void myentity_foreach_start(myentity_iteration_state_t *state, myentity_type_t t
{
mowgli_patricia_foreach_next(entities, &state->st);
e = mowgli_patricia_foreach_cur(entities, &state->st);
}
}
}

myentity_t *myentity_foreach_cur(myentity_iteration_state_t *state)
Expand Down
8 changes: 4 additions & 4 deletions libathemecore/flags.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* flags.c: Functions to convert a flags table into a bitmask.
*
* Copyright (c) 2005-2010 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2010 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -340,7 +340,7 @@ void update_chanacs_flags(void)
ca_all = ca_all_enable = 0;
for (i = 0; i < ARRAY_SIZE(chanacs_flags); i++)
{
ca_all |= chanacs_flags[i].value;
ca_all |= chanacs_flags[i].value;
if (chanacs_flags[i].def == true)
ca_all_enable |= chanacs_flags[i].value;
}
Expand Down Expand Up @@ -393,7 +393,7 @@ unsigned int xflag_apply(unsigned int in, const char *name)
if (status == FLAGS_ADD)
out |= flag;
else
out &= ~flag;
out &= ~flag;

return out;
}
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/function.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* function.c: Miscillaneous functions.
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/help.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* help.c: Help system implementation.
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions libathemecore/linker.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* linker.c: Abstraction of the dynamic linking system.
*
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2007 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
8 changes: 4 additions & 4 deletions libathemecore/logger.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* atheme-services: A collection of minimalist IRC services
* atheme-services: A collection of minimalist IRC services
* logger.c: Logging routines
*
* Copyright (c) 2005-2009 Atheme Project (http://www.atheme.org)
* Copyright (c) 2005-2009 Atheme Project (http://www.atheme.org)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -586,11 +586,11 @@ static void vslog_ext(log_type_t type, unsigned int level, const char *fmt,
lf->write_func(lf, buf);
}

/*
/*
* if the event is in the default loglevel, and we are starting, then
* display it in the controlling terminal.
*/
if (type != LOG_INTERACTIVE && ((runflags & (RF_LIVE | RF_STARTING) &&
if (type != LOG_INTERACTIVE && ((runflags & (RF_LIVE | RF_STARTING) &&
(log_file != NULL ? log_file->log_mask : LG_ERROR | LG_INFO) & level) ||
(runflags & RF_LIVE && log_force)))
fprintf(stderr, "%s %s\n", datetime, logfile_strip_control_codes(buf));
Expand Down
Loading

0 comments on commit a8d683d

Please sign in to comment.