solanum/ircd
Simon Arlott d8f0b5d763
cppcheck: fix various warnings/errors
[ircd/match.c:316]: (error) Shifting a negative value is undefined behaviour
[librb/src/patricia.c:55]: (error) Shifting a negative value is undefined behaviour
[modules/m_alias.c:64]: (portability) '(void*)message' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[modules/m_time.c:111]: (warning) %u in format string (no. 9) requires 'unsigned int' but the argument type is 'signed int'.
[modules/m_time.c:111]: (warning) %u in format string (no. 10) requires 'unsigned int' but the argument type is 'signed int'.
[librb/src/dictionary.c:819]: (warning) %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'.
[librb/src/radixtree.c:1080]: (warning) %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'.
[ircd/s_user.c:351] -> [ircd/s_user.c:357]: (warning) Either the condition '0!=source_p' is redundant or there is possible null pointer dereference: source_p.
[extensions/ip_cloaking_3.0.c:109]: (warning, inconclusive) The buffer 'buf' may not be null-terminated after the call to strncpy().
[ircd/chmode.c:256]: (style) Clarify calculation precedence for '&' and '?'.
[modules/m_help.c:100]: (style) Clarify calculation precedence for '&' and '?'.
[modules/m_knock.c:169]: (style) Clarify calculation precedence for '&' and '?'.
[modules/m_stats.c:628]: (style) Clarify calculation precedence for '&' and '?'.
[modules/m_stats.c:727]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:601]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:704]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:739]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:763]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:768]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:774]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:781]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:786]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:791]: (style) Clarify calculation precedence for '&' and '?'.
[librb/src/radixtree.c:804]: (style) Clarify calculation precedence for '&' and '?'.
[ircd/wsproc.c:372]: (style) Unused variable: len
[modules/core/m_modules.c:382]: (style) Unused variable: i
[modules/m_stats.c:741]: (style) Unused variable: amsg
[ircd/authproc.c:390]: (style) Unused variable: iter
[ircd/authproc.c:391]: (style) Unused variable: client_p
2016-10-28 20:13:36 +01:00
..
authproc.c cppcheck: fix various warnings/errors 2016-10-28 20:13:36 +01:00
bandbi.c bandbi: a function that calls exit(3) should be marked noreturn 2016-06-01 20:54:11 +00:00
cache.c Use rb_* versions of nonportable string functions 2016-04-05 05:39:59 -05:00
capability.c ircd: Fix capability entry name string ownership. 2016-06-21 17:32:28 -07:00
channel.c channel: silence harmless uninitialised variable warning 2016-06-01 20:54:12 +00:00
chmode.c cppcheck: fix various warnings/errors 2016-10-28 20:13:36 +01:00
class.c class: remove unused macros 2016-06-01 20:54:12 +00:00
client.c strcpy: mass-migrate to strlcpy where appropriate 2016-05-15 03:58:44 +00:00
dns.c dns: make function used only within this unit static 2016-06-01 20:54:12 +00:00
extban.c common.h: raison d'être is gone, so out it goes. 2016-03-23 09:33:56 -05:00
getopt.c getopt: don't modify argv as it breaks restart() 2016-04-25 23:32:18 +01:00
hash.c hash.c: Save some more bytes 2016-03-27 06:29:10 -04:00
hook.c Add hook for when rehash is called. 2016-04-06 05:43:54 -05:00
hostmask.c ipv4_from_ipv6: move to librb 2016-04-08 03:49:23 -05:00
ircd.c Print initialisation notice before forking 2016-08-24 16:44:04 +00:00
ircd_lexer.l ircd_lexer: fix another crash with the same cause 2016-05-15 00:57:16 +00:00
ircd_parser.y conf_parser: warning fixes 2016-06-18 00:52:54 -05:00
ircd_signal.c ircd_signal: a function that tailcalls a noreturn function should be marked noreturn 2016-06-01 20:54:12 +00:00
listener.c minor spring cleaning: remove/relocate duplicate/unused includes & macros 2016-05-14 23:29:33 +00:00
logger.c logger: add idebug 2016-03-28 19:06:31 -05:00
main.c ircd: add main.c stub executable 2016-01-06 23:57:35 -06:00
Makefile.am Revert "Implement the netsplit batch type." 2016-04-16 11:05:00 -05:00
match.c cppcheck: fix various warnings/errors 2016-10-28 20:13:36 +01:00
modules.c Core modules cannot be unloaded, otherwise bad things happen. 2016-06-21 17:42:36 -07:00
monitor.c typedef-ify rb_radixtree for consistency. 2016-03-23 08:32:22 -05:00
msgbuf.c msgbuf_parse: rb_string_to_array outputs to a MAXPARA+1 size array 2016-10-22 22:38:07 +01:00
newconf.c ircd: introduce 'no-export' links 2016-09-16 17:18:55 -05:00
operhash.c ircd: Fix missing operhash reference decrement from b02a913b. 2016-07-19 23:24:33 +00:00
packet.c common.h: raison d'être is gone, so out it goes. 2016-03-23 09:33:56 -05:00
parse.c ircd: don't send ERR_NOTREGISTERED to servers 2016-04-24 17:41:44 +01:00
privilege.c Use rb_* versions of nonportable string functions 2016-04-05 05:39:59 -05:00
ratelimit.c rename src to ircd, libcore to libircd 2016-01-06 01:16:08 -06:00
reject.c Remove $Id tags from everything. 2016-03-06 02:47:27 -06:00
restart.c getopt: don't modify argv as it breaks restart() 2016-04-25 23:32:18 +01:00
s_conf.c supported: add chantypes_update() 2016-09-16 13:49:02 -05:00
s_newconf.c Fix erroneous return value. 2016-07-16 11:26:38 -07:00
s_serv.c ircd: introduce 'no-export' links 2016-09-16 17:18:55 -05:00
s_user.c cppcheck: fix various warnings/errors 2016-10-28 20:13:36 +01:00
scache.c common.h: raison d'être is gone, so out it goes. 2016-03-23 09:33:56 -05:00
send.c send: trim a blank line [ci skip] 2016-04-11 11:52:01 -05:00
snomask.c Remove $Id tags from everything. 2016-03-06 02:47:27 -06:00
sslproc.c strcpy: mass-migrate to strlcpy where appropriate 2016-05-15 03:58:44 +00:00
substitution.c Use rb_* versions of nonportable string functions 2016-04-05 05:39:59 -05:00
supported.c supported: fix up CHANTYPES 2016-09-16 14:00:00 -05:00
tgchange.c rename src to ircd, libcore to libircd 2016-01-06 01:16:08 -06:00
version.c.SH version.c.SH: Fix build 2016-04-09 06:05:08 -04:00
whowas.c typedef-ify rb_radixtree for consistency. 2016-03-23 08:32:22 -05:00
wsproc.c cppcheck: fix various warnings/errors 2016-10-28 20:13:36 +01:00