From 55abcbb20aeabcf2e878a9c65c9697210dd10079 Mon Sep 17 00:00:00 2001 From: Keith Buck Date: Mon, 3 Mar 2014 04:25:47 +0000 Subject: [PATCH] Remove trailing whitespace from all .c and .h files. 3134 bytes were removed. --- bandb/bantool.c | 2 +- bandb/rsdb_sqlite3.c | 6 +- bandb/sqlite3.c | 2478 +++++++++++++++---------------- bandb/sqlite3.h | 570 +++---- extensions/example_module.c | 2 +- extensions/hurt.c | 4 +- extensions/ip_cloaking.c | 10 +- extensions/ip_cloaking_3.0.c | 4 +- extensions/ip_cloaking_4.0.c | 10 +- extensions/ip_cloaking_old.c | 2 +- extensions/m_42.c | 2 +- extensions/m_adminwall.c | 12 +- extensions/m_findforwards.c | 2 +- extensions/m_ojoin.c | 6 +- extensions/m_okick.c | 2 +- extensions/m_omode.c | 8 +- extensions/m_remove.c | 6 +- extensions/m_roleplay.c | 18 +- extensions/m_webirc.c | 6 +- extensions/override.c | 2 +- extensions/sno_whois.c | 2 +- include/channel.h | 2 +- include/client.h | 22 +- include/config.h | 6 +- include/hostmask.h | 2 +- include/ircd_defs.h | 6 +- include/match.h | 4 +- include/monitor.h | 2 +- include/numeric.h | 4 +- include/parse.h | 2 +- include/res.h | 2 +- include/s_conf.h | 2 +- include/s_newconf.h | 2 +- include/s_serv.h | 4 +- include/s_user.h | 2 +- include/send.h | 4 +- include/stdinc.h | 4 +- include/supported.h | 6 +- libratbox/include/rb_helper.h | 2 +- libratbox/include/rb_patricia.h | 2 +- libratbox/include/rb_tools.h | 10 +- libratbox/src/balloc.c | 18 +- libratbox/src/commio.c | 12 +- libratbox/src/crypt.c | 10 +- libratbox/src/event.c | 10 +- libratbox/src/gnutls.c | 10 +- libratbox/src/helper.c | 2 +- libratbox/src/linebuf.c | 6 +- libratbox/src/nossl.c | 10 +- libratbox/src/openssl.c | 4 +- libratbox/src/patricia.c | 6 +- libratbox/src/ports.c | 22 +- libratbox/src/rawbuf.c | 2 +- libratbox/src/sigio.c | 2 +- libratbox/src/snprintf.c | 2 +- libratbox/src/tools.c | 8 +- libratbox/src/unix.c | 2 +- libratbox/src/win32.c | 6 +- modules/core/m_ban.c | 2 +- modules/core/m_join.c | 6 +- modules/core/m_kick.c | 6 +- modules/core/m_kill.c | 6 +- modules/core/m_message.c | 8 +- modules/core/m_nick.c | 6 +- modules/core/m_part.c | 2 +- modules/core/m_server.c | 14 +- modules/m_accept.c | 8 +- modules/m_admin.c | 12 +- modules/m_away.c | 6 +- modules/m_cap.c | 12 +- modules/m_challenge.c | 20 +- modules/m_chghost.c | 2 +- modules/m_cmessage.c | 2 +- modules/m_connect.c | 8 +- modules/m_dline.c | 2 +- modules/m_encap.c | 2 +- modules/m_etrace.c | 50 +- modules/m_info.c | 16 +- modules/m_invite.c | 18 +- modules/m_kline.c | 6 +- modules/m_knock.c | 8 +- modules/m_links.c | 4 +- modules/m_list.c | 6 +- modules/m_locops.c | 4 +- modules/m_lusers.c | 4 +- modules/m_monitor.c | 8 +- modules/m_names.c | 6 +- modules/m_oper.c | 6 +- modules/m_pass.c | 12 +- modules/m_ping.c | 6 +- modules/m_pong.c | 4 +- modules/m_rehash.c | 6 +- modules/m_sasl.c | 4 +- modules/m_scan.c | 6 +- modules/m_services.c | 4 +- modules/m_set.c | 10 +- modules/m_signon.c | 36 +- modules/m_snote.c | 2 +- modules/m_stats.c | 94 +- modules/m_tb.c | 2 +- modules/m_testline.c | 12 +- modules/m_testmask.c | 6 +- modules/m_topic.c | 2 +- modules/m_trace.c | 16 +- modules/m_unreject.c | 6 +- modules/m_users.c | 2 +- modules/m_version.c | 2 +- modules/m_wallops.c | 4 +- modules/m_who.c | 4 +- modules/m_whois.c | 30 +- modules/m_whowas.c | 6 +- modules/m_xline.c | 2 +- src/bandbi.c | 2 +- src/cache.c | 20 +- src/channel.c | 16 +- src/chmode.c | 22 +- src/class.c | 18 +- src/client.c | 106 +- src/hash.c | 20 +- src/hostmask.c | 66 +- src/irc_dictionary.c | 4 +- src/ircd.c | 8 +- src/ircd_signal.c | 2 +- src/listener.c | 42 +- src/logger.c | 10 +- src/match.c | 2 +- src/modules.c | 14 +- src/packet.c | 18 +- src/parse.c | 26 +- src/reject.c | 44 +- src/res.c | 28 +- src/reslib.c | 22 +- src/restart.c | 6 +- src/s_auth.c | 30 +- src/s_conf.c | 46 +- src/s_newconf.c | 6 +- src/s_serv.c | 36 +- src/s_user.c | 34 +- src/scache.c | 10 +- src/send.c | 66 +- src/sslproc.c | 10 +- src/supported.c | 2 +- ssld/ssld.c | 4 +- tools/convertilines.c | 36 +- tools/convertklines.c | 30 +- tools/mkpasswd.c | 4 +- tools/viconf.c | 6 +- 147 files changed, 2365 insertions(+), 2365 deletions(-) diff --git a/bandb/bantool.c b/bandb/bantool.c index 930099d0..e43c0f8f 100644 --- a/bandb/bantool.c +++ b/bandb/bantool.c @@ -128,7 +128,7 @@ static void wipe_schema(void); static void drop_dupes(const char *user, const char *host, const char *t); /** - * swing your pants + * swing your pants */ int main(int argc, char *argv[]) diff --git a/bandb/rsdb_sqlite3.c b/bandb/rsdb_sqlite3.c index e2c4f211..77903200 100644 --- a/bandb/rsdb_sqlite3.c +++ b/bandb/rsdb_sqlite3.c @@ -3,7 +3,7 @@ * * Copyright (C) 2003-2006 Lee Hardy * Copyright (C) 2003-2006 ircd-ratbox development team - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: @@ -27,7 +27,7 @@ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. - * + * * $Id: rsdb_sqlite3.c 26182 2008-11-11 02:52:41Z androsyn $ */ #include "stdinc.h" @@ -82,7 +82,7 @@ rsdb_init(rsdb_error_cb * ecb) { rb_snprintf(errbuf, sizeof(errbuf), "Unable to open sqlite database for write: %s", strerror(errno)); mlog(errbuf); - return -1; + return -1; } return 0; } diff --git a/bandb/sqlite3.c b/bandb/sqlite3.c index dcb28280..1227301b 100644 --- a/bandb/sqlite3.c +++ b/bandb/sqlite3.c @@ -1,6 +1,6 @@ /****************************************************************************** ** This file is an amalgamation of many separate C source files from SQLite -** version 3.5.9. By combining all the individual C code files into this +** version 3.5.9. By combining all the individual C code files into this ** single large file, the entire code can be compiled as a one translation ** unit. This allows many compilers to do optimizations that would not be ** possible if the files were compiled separately. Performance improvements @@ -9,7 +9,7 @@ ** ** This file is all you need to compile SQLite. To use SQLite in other ** programs, you need this file and the "sqlite3.h" header file that defines -** the programming interface to the SQLite library. (If you do not have +** the programming interface to the SQLite library. (If you do not have ** the "sqlite3.h" header file at hand, you will find a copy in the first ** 5638 lines past this header comment.) Additional code files may be ** needed if you want a wrapper to interface SQLite with your choice of @@ -67,7 +67,7 @@ ** May you share freely, never taking more than you give. ** ************************************************************************* -** +** ** This file defines various limits of what SQLite can process. ** ** @(#) $Id: sqlite3.c 26106 2008-09-20 03:24:47Z androsyn $ @@ -117,9 +117,9 @@ #endif /* -** The maximum depth of an expression tree. This is limited to -** some extent by SQLITE_MAX_SQL_LENGTH. But sometime you might -** want to place more severe limits on the complexity of an +** The maximum depth of an expression tree. This is limited to +** some extent by SQLITE_MAX_SQL_LENGTH. But sometime you might +** want to place more severe limits on the complexity of an ** expression. ** ** A value of 0 used to mean that the limit was not enforced. @@ -267,7 +267,7 @@ /* ** A macro used to aid in coverage testing. When doing coverage -** testing, the condition inside the argument must be evaluated +** testing, the condition inside the argument must be evaluated ** both true and false in order to get full branch coverage. ** This macro can be inserted to ensure adequate test coverage ** in places where simple condition/decision coverage is inadequate. @@ -423,7 +423,7 @@ SQLITE_PRIVATE void sqlite3Coverage(int); ** ** Some of the definitions that are in this file are marked as ** "experimental". Experimental interfaces are normally new -** features recently added to SQLite. We do not anticipate changes +** features recently added to SQLite. We do not anticipate changes ** to experimental interfaces but reserve to make minor changes if ** experience from use "in the wild" suggest such changes are prudent. ** @@ -510,8 +510,8 @@ extern "C" ** These features provide the same information as the [SQLITE_VERSION] ** and [SQLITE_VERSION_NUMBER] #defines in the header, but are associated ** with the library instead of the header file. Cautious programmers might -** include a check in their application to verify that -** sqlite3_libversion_number() always returns the value +** include a check in their application to verify that +** sqlite3_libversion_number() always returns the value ** [SQLITE_VERSION_NUMBER]. ** ** The sqlite3_libversion() function returns the same information as is @@ -522,10 +522,10 @@ extern "C" ** INVARIANTS: ** ** {F10021} The [sqlite3_libversion_number()] interface returns an integer -** equal to [SQLITE_VERSION_NUMBER]. +** equal to [SQLITE_VERSION_NUMBER]. ** ** {F10022} The [sqlite3_version] string constant contains the text of the -** [SQLITE_VERSION] string. +** [SQLITE_VERSION] string. ** ** {F10023} The [sqlite3_libversion()] function returns ** a pointer to the [sqlite3_version] string constant. @@ -619,11 +619,11 @@ extern "C" /* ** CAPI3REF: Closing A Database Connection {F12010} ** -** This routine is the destructor for the [sqlite3] object. +** This routine is the destructor for the [sqlite3] object. ** ** Applications should [sqlite3_finalize | finalize] all ** [prepared statements] and -** [sqlite3_blob_close | close] all [sqlite3_blob | BLOBs] +** [sqlite3_blob_close | close] all [sqlite3_blob | BLOBs] ** associated with the [sqlite3] object prior ** to attempting to close the [sqlite3] object. ** @@ -649,7 +649,7 @@ extern "C" ** LIMITATIONS: ** ** {U12015} The parameter to [sqlite3_close()] must be an [sqlite3] object -** pointer previously obtained from [sqlite3_open()] or the +** pointer previously obtained from [sqlite3_open()] or the ** equivalent, or NULL. ** ** {U12016} The parameter to [sqlite3_close()] must not have been previously @@ -684,7 +684,7 @@ extern "C" ** The sqlite3_exec() is just a convenient wrapper. ** ** INVARIANTS: -** +** ** {F12101} The [sqlite3_exec()] interface evaluates zero or more UTF-8 ** encoded, semicolon-separated, SQL statements in the ** zero-terminated string of its 2nd parameter within the @@ -693,7 +693,7 @@ extern "C" ** {F12104} The return value of [sqlite3_exec()] is SQLITE_OK if all ** SQL statements run successfully. ** -** {F12105} The return value of [sqlite3_exec()] is an appropriate +** {F12105} The return value of [sqlite3_exec()] is an appropriate ** non-zero error code if any SQL statement fails. ** ** {F12107} If one or more of the SQL statements handed to [sqlite3_exec()] @@ -714,7 +714,7 @@ extern "C" ** callback to be the number of columns in the current row of ** result. ** -** {F12119} The [sqlite3_exec()] routine sets the 3rd parameter of its +** {F12119} The [sqlite3_exec()] routine sets the 3rd parameter of its ** callback to be an array of pointers to strings holding the ** values for each column in the current result set row as ** obtained from [sqlite3_column_text()]. @@ -751,7 +751,7 @@ extern "C" ** ** {U12142} The database connection must not be closed while ** [sqlite3_exec()] is running. -** +** ** {U12143} The calling function is should use [sqlite3_free()] to free ** the memory that *errmsg is left pointing at once the error ** message is no longer needed. @@ -821,7 +821,7 @@ extern "C" ** about errors. The extended result codes are enabled or disabled ** for each database connection using the [sqlite3_extended_result_codes()] ** API. -** +** ** Some of the available extended result codes are listed here. ** One may expect the number of extended result codes will be expand ** over time. Software that uses extended result codes should expect @@ -829,7 +829,7 @@ extern "C" ** ** The SQLITE_OK result code will never be extended. It will always ** be exactly zero. -** +** ** INVARIANTS: ** ** {F10223} The symbolic name for an extended result code always contains @@ -931,8 +931,8 @@ extern "C" ** ** When the SQLITE_SYNC_DATAONLY flag is used, it means that the ** sync operation only needs to flush data to mass storage. Inode -** information need not be flushed. The SQLITE_SYNC_NORMAL flag means -** to use normal fsync() semantics. The SQLITE_SYNC_FULL flag means +** information need not be flushed. The SQLITE_SYNC_NORMAL flag means +** to use normal fsync() semantics. The SQLITE_SYNC_FULL flag means ** to use Mac OS-X style fullsync instead of fsync(). */ #define SQLITE_SYNC_NORMAL 0x00002 @@ -969,7 +969,7 @@ extern "C" ** OS-X style fullsync. The SQLITE_SYNC_DATA flag may be ORed in to ** indicate that only the data of the file and not its inode needs to be ** synced. -** +** ** The integer values to xLock() and xUnlock() are one of ** -** xLock() increases the lock. xUnlock() decreases the lock. +** xLock() increases the lock. xUnlock() decreases the lock. ** The xCheckReservedLock() method looks ** to see if any database connection, either in this ** process or in some other process, is holding an RESERVED, ** PENDING, or EXCLUSIVE lock on the file. It returns true ** if such a lock exists and false if not. -** +** ** The xFileControl() method is a generic interface that allows custom ** VFS implementations to directly control an open file using the ** [sqlite3_file_control()] interface. The second "op" argument @@ -995,9 +995,9 @@ extern "C" ** functions to enable blocking locks with timeouts, to change the ** locking strategy (for example to use dot-file locks), to inquire ** about the status of a lock, or to break stale locks. The SQLite -** core reserves opcodes less than 100 for its own use. +** core reserves opcodes less than 100 for its own use. ** A [SQLITE_FCNTL_LOCKSTATE | list of opcodes] less than 100 is available. -** Applications that define a custom xFileControl method should use opcodes +** Applications that define a custom xFileControl method should use opcodes ** greater than 100 to avoid conflicts. ** ** The xSectorSize() method returns the sector size of the @@ -1101,7 +1101,7 @@ extern "C" ** in a thread-safe way. The [sqlite3_vfs_find()] interface ** searches the list. ** -** The pNext field is the only field in the sqlite3_vfs +** The pNext field is the only field in the sqlite3_vfs ** structure that SQLite will ever modify. SQLite will only access ** or modify this field while holding a particular static mutex. ** The application should never modify anything within the sqlite3_vfs @@ -1123,10 +1123,10 @@ extern "C" ** If xOpen() opens a file read-only then it sets *pOutFlags to ** include [SQLITE_OPEN_READONLY]. Other bits in *pOutFlags may be ** set. -** +** ** {F11143} SQLite will also add one of the following flags to the xOpen() ** call, depending on the object being opened: -** +** **