aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-12 18:27:28 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-12 18:27:40 -0400
commit6e8899b3b596f74282d21c75cbb7172bb6f9e086 (patch)
treec4cb9066a314234e1f05a1f96e9819a105da76a2 /src/irc.c
parentaa82c562dbbbdabac2acc43d5002bfe8b46ca646 (diff)
downloadfujinet-chat-6e8899b3b596f74282d21c75cbb7172bb6f9e086.tar.gz
Replace bzero() and memset() with smaller memclear(). 7658 bytes free.
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc.c b/src/irc.c
index 14bef03..f87e9f2 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -14,6 +14,7 @@
#include "kgetc.h"
#include "streq.h"
#include "timers.h"
+#include "memclear.h"
#ifndef VERSION
#define VERSION "?????"
@@ -119,7 +120,7 @@ static void do_priv_nick(void) {
the compiled code smaller, but it grew by ~50 bytes. avoid.
*/
static void print_ping_time(char *p) {
- extern void calc_ping_time(unsigned int j);
+ extern void calc_ping_time(char *p);
scr_print_active("*** ");
scr_print_active(msg_src);
@@ -567,7 +568,7 @@ static void parse_msg(void) {
if(!*msgbuf) return;
msg_cmd = msg_text = msg_src = msg_dest = 0;
- memset(msg_args, 0, sizeof(msg_args));
+ memclear(msg_args, sizeof(msg_args));
/* first token is either the source (with a :) or a command (without) */
if(*msgbuf == ':') {