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

@@ -23,11 +23,11 @@
#include <string.h>
#include <stdbool.h>
struct map* map_init();
struct map* map_init(void);
struct map* map_init_void();
struct map* map_init_void(void);
void map_free();
void map_free(struct map* map);
bool map_put(struct map* map, const char* key, char* value);

View File

@@ -27,7 +27,7 @@
#include <sys/time.h>
time_t utils_get_time_millis();
time_t utils_get_time_millis(void);
void utils_sleep_millis(time_t millis);

View File

@@ -54,15 +54,15 @@ struct wl_list* wofi_read_cache(char* mode);
void wofi_insert_widget(char* mode, char** text, char* search_text, char** actions, size_t action_count);
bool wofi_allow_images();
bool wofi_allow_images(void);
bool wofi_allow_markup();
bool wofi_allow_markup(void);
uint64_t wofi_get_image_size();
uint64_t wofi_get_image_size(void);
bool wofi_mod_shift();
bool wofi_mod_shift(void);
bool wofi_mod_control();
bool wofi_mod_control(void);
void wofi_term_run(const char* cmd);
#endif