CLEANUP: Modernize C from 90s style to current C
authorRemco Rijnders <remmy@serenity-irc.net>
Sat, 7 Mar 2026 17:17:36 +0000 (12:17 -0500)
committerRemco Rijnders <remmy@serenity-irc.net>
Sat, 7 Mar 2026 17:17:36 +0000 (12:17 -0500)
commitddf3a33851e56c7e415721f6386efd8e63367e30
treece45ae709cedfea92eee8faa6e6d68a56bf60306
parent55290e53567293cdd3a6753444d0f62968936a7d
CLEANUP: Modernize C from 90s style to current C

- Convert all K&R function definitions to ANSI C prototypes
- Remove register keyword throughout
- Replace bzero/bcopy/bcmp with memset/memcpy/memcmp
- Replace index/rindex with strchr/strrchr
- Remove extern int errno declarations
- Remove PROTO() macro (K&R/ANSI compatibility shim)
- Convert all fake-variadic functions (p1..p8 pattern) to proper
  stdarg.h variadics: sendto_one, sendto_prefix_one, sendto_serv_butone,
  sendto_channel_butone, sendto_channelops_butone,
  sendto_channelvoice_butone, sendto_match_butone, sendto_all_butone,
  sendto_common_channels, sendto_channel_butserv, sendto_match_servs,
  sendto_ops, sendto_failops, sendto_umode, sendto_failops_whoare_opers,
  sendto_locfailops, sendto_opers, sendto_ops_butone, sendto_opers_butone,
  sendto_ops_butme, sendto_realops, sendto_SNICK_butone,
  sendto_serv_butone_quit, sendto_one_notice, debug, dumpcore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 files changed:
include/class.h
include/common.h
include/dbuf.h
include/h.h
include/sys.h
include/userload.h
include/whowas.h
src/bsd.c
src/channel.c
src/chkconf.c
src/class.c
src/dbuf.c
src/hash.c
src/ircd.c
src/list.c
src/match.c
src/packet.c
src/parse.c
src/res.c
src/s_bsd.c
src/s_conf.c
src/s_debug.c
src/s_err.c
src/s_misc.c
src/s_numeric.c
src/s_ping.c
src/s_serv.c
src/s_user.c
src/send.c
src/strtoul.c
src/support.c
src/userload.c
src/whowas.c