Fix compiler warnings

This commit is contained in:
project-repo 2023-02-17 09:55:20 +01:00
commit 78212cc830
4 changed files with 4 additions and 5 deletions

View file

@ -10,7 +10,7 @@
#include <wlr/render/wlr_renderer.h>
int
fork() {
fork(void) {
return 1;
}

View file

@ -88,7 +88,7 @@ drop_permissions(void) {
}
void
cleanup() {
cleanup(void) {
server.running = false;
#if CG_HAS_XWAYLAND
if(xwayland != NULL) {

View file

@ -21,7 +21,7 @@ extern struct wlr_xcursor_manager *xcursor_manager;
#endif
void
cleanup();
cleanup(void);
int
LLVMFuzzerInitialize(int *argc, char ***argv);

View file

@ -29,8 +29,7 @@
int
set_configuration(struct cg_server *server, char *content) {
char *line;
for(unsigned int line_num = 1;
(line = strtok_r(NULL, "\n", &content)) != NULL; ++line_num) {
while((line = strtok_r(NULL, "\n", &content)) != NULL) {
line[strcspn(line, "\n")] = '\0';
if(*line != '\0' && *line != '#') {
char *errstr = NULL;