remove redundant else and fix formatting
This commit is contained in:
parent
c6ed6a3b25
commit
0a3bcde32c
6
fbflut.c
6
fbflut.c
|
@ -146,17 +146,15 @@ void *handle_connection(void *socket_desc) {
|
||||||
fbdata[ypos * fb_length + xpos]);
|
fbdata[ypos * fb_length + xpos]);
|
||||||
write(sock, message, message_len);
|
write(sock, message, message_len);
|
||||||
continue;
|
continue;
|
||||||
} else {
|
}
|
||||||
colorcode[fb_hexbytes] = '\0';
|
colorcode[fb_hexbytes] = '\0';
|
||||||
#ifdef ALPHA_AT_END
|
#ifdef ALPHA_AT_END
|
||||||
if (strlen(colorcode) < fb_hexbytes)
|
if (strlen(colorcode) < fb_hexbytes)
|
||||||
strcat(colorcode, "00");
|
strcat(colorcode, "00");
|
||||||
#endif
|
#endif
|
||||||
int color =
|
int color = (int)strtol(colorcode, NULL, 16);
|
||||||
(int)strtol(colorcode, NULL, 16);
|
|
||||||
fbdata[ypos * fb_length + xpos] = color;
|
fbdata[ypos * fb_length + xpos] = color;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!strcmp("SIZE", command)) {
|
if (!strcmp("SIZE", command)) {
|
||||||
|
|
Loading…
Reference in New Issue