Good C practices
This commit is contained in:
@@ -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*);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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*);
|
||||
}
|
||||
|
Reference in New Issue
Block a user