mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Fix compiler warnings
This commit is contained in:
parent
1889c60484
commit
78212cc830
4 changed files with 4 additions and 5 deletions
|
|
@ -10,7 +10,7 @@
|
|||
#include <wlr/render/wlr_renderer.h>
|
||||
|
||||
int
|
||||
fork() {
|
||||
fork(void) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ drop_permissions(void) {
|
|||
}
|
||||
|
||||
void
|
||||
cleanup() {
|
||||
cleanup(void) {
|
||||
server.running = false;
|
||||
#if CG_HAS_XWAYLAND
|
||||
if(xwayland != NULL) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ extern struct wlr_xcursor_manager *xcursor_manager;
|
|||
#endif
|
||||
|
||||
void
|
||||
cleanup();
|
||||
cleanup(void);
|
||||
|
||||
int
|
||||
LLVMFuzzerInitialize(int *argc, char ***argv);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue