remove redundant else and fix formatting

This commit is contained in:
xfnw 2024-01-08 13:12:42 -05:00
parent c6ed6a3b25
commit 0a3bcde32c
1 changed files with 9 additions and 11 deletions

View File

@ -146,17 +146,15 @@ void *handle_connection(void *socket_desc) {
fbdata[ypos * fb_length + xpos]);
write(sock, message, message_len);
continue;
} else {
}
colorcode[fb_hexbytes] = '\0';
#ifdef ALPHA_AT_END
if (strlen(colorcode) < fb_hexbytes)
strcat(colorcode, "00");
#endif
int color =
(int)strtol(colorcode, NULL, 16);
int color = (int)strtol(colorcode, NULL, 16);
fbdata[ypos * fb_length + xpos] = color;
}
}
continue;
}
if (!strcmp("SIZE", command)) {