Good C practices

This commit is contained in:
Scoopta
2020-01-06 00:39:47 -08:00
parent 8bcdfc0f13
commit a85c516926
10 changed files with 23 additions and 23 deletions

View File

@@ -95,10 +95,10 @@ void wofi_dmenu_exec(const gchar* cmd) {
exit(0);
}
const char** wofi_dmenu_get_arg_names() {
const char** wofi_dmenu_get_arg_names(void) {
return arg_names;
}
size_t wofi_dmenu_get_arg_count() {
size_t wofi_dmenu_get_arg_count(void) {
return sizeof(arg_names) / sizeof(char*);
}

View File

@@ -175,7 +175,7 @@ static void insert_dir(char* app_dir, struct map* cached, struct map* entries) {
closedir(dir);
}
void wofi_drun_init() {
void wofi_drun_init(void) {
struct map* cached = map_init();
struct map* entries = map_init();
struct wl_list* cache = wofi_read_cache(MODE);

View File

@@ -121,10 +121,10 @@ void wofi_run_exec(const gchar* cmd) {
exit(errno);
}
const char** wofi_run_get_arg_names() {
const char** wofi_run_get_arg_names(void) {
return arg_names;
}
size_t wofi_run_get_arg_count() {
size_t wofi_run_get_arg_count(void) {
return sizeof(arg_names) / sizeof(char*);
}