From 5c5e8fd7ce1eca3b9bb7cccf51e7f7f18ce2bd87 Mon Sep 17 00:00:00 2001 From: Sam Smith Date: Sun, 24 Apr 2022 15:35:39 -0700 Subject: [PATCH] lil clean up --- irc.c | 4 ++-- main.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/irc.c b/irc.c index b245d4d..83cba8b 100644 --- a/irc.c +++ b/irc.c @@ -2,7 +2,7 @@ void processPacket(struct client_data *client) { char *packet = client->buf; - size_t packetLen = client->bufLen; + //size_t packetLen = client->bufLen; if(strncmp(packet, "PING", 4) == 0) { char data[1024]; strcpy(data, ":irc.patchysicp.xyz PONG irc.patchysicp.xyz "); @@ -87,7 +87,7 @@ void setNick(struct client_data *client, char* nickname, size_t size) { // Null term client->nick[size-1] = 0; // Remove newline - int i; + size_t i; for(i=0;inick[i] == 13) { diff --git a/main.c b/main.c index c64125a..8585f7e 100644 --- a/main.c +++ b/main.c @@ -26,8 +26,6 @@ int main() { int i; char client_addr[100]; char *welcomeMessage = ":irc.patchysicp.xyz NOTICE * :Hello welcome to PatchyIRCD!\n"; - char buffer[1024]; - size_t bytesRead; puts("[PatchyIRCD]: Starting up..."); fflush(stdout); -- 2.56.0