CLEANUP: Modernize C idioms (register, bzero/bcopy/bcmp, index/rindex, errno)
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)
commit55290e53567293cdd3a6753444d0f62968936a7d
tree355336d3e5461af0cbcaf044bbc0ad13572896db
parent074ba1612036ed1e94450542f10c3e1ff505f456
CLEANUP: Modernize C idioms (register, bzero/bcopy/bcmp, index/rindex, errno)

- Remove 'register' keyword (33 occurrences) — modern compilers ignore it
- Replace bzero/bcopy/bcmp with memset/memcpy/memcmp (110 occurrences)
- Replace index/rindex with strchr/strrchr (85 occurrences)
- Remove 'extern int errno' declarations (3 files) — provided by errno.h

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 files changed:
src/bsd.c
src/channel.c
src/chkconf.c
src/dbuf.c
src/hash.c
src/ircd.c
src/list.c
src/packet.c
src/parse.c
src/res.c
src/s_bsd.c
src/s_conf.c
src/s_misc.c
src/s_ping.c
src/s_serv.c
src/s_user.c
src/s_zip.c
src/send.c
src/support.c
src/userload.c
src/whowas.c