From: Sam Smith Date: Sun, 24 Apr 2022 22:35:39 +0000 (-0700) Subject: lil clean up X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=5c5e8fd7ce1eca3b9bb7cccf51e7f7f18ce2bd87;p=patchyircd.git lil clean up --- 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);