Good C practices
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
||||
|
10
inc/wofi.h
10
inc/wofi.h
@@ -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
|
||||
|
Reference in New Issue
Block a user