diff options
author | Arkadiusz Hiler <arek@hiler.eu> | 2018-09-30 13:58:49 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arek@hiler.eu> | 2018-09-30 14:09:05 +0300 |
commit | 1e70f7b19e92c20a691f2697b2c92ea8b13daba3 (patch) | |
tree | 112f684404755d6924d7338507eaef07500ced1f /sway | |
parent | Remove declarations that do no have definitions (diff) | |
download | sway-1e70f7b19e92c20a691f2697b2c92ea8b13daba3.tar.gz sway-1e70f7b19e92c20a691f2697b2c92ea8b13daba3.tar.zst sway-1e70f7b19e92c20a691f2697b2c92ea8b13daba3.zip |
Turn funcs() into funcs(void)
If they really do not take undefined number of arguments.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config/seat.c | 2 | ||||
-rw-r--r-- | sway/debug-tree.c | 2 | ||||
-rw-r--r-- | sway/input/cursor.c | 2 | ||||
-rw-r--r-- | sway/ipc-json.c | 2 | ||||
-rw-r--r-- | sway/main.c | 10 | ||||
-rw-r--r-- | sway/tree/container.c | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/sway/config/seat.c b/sway/config/seat.c index 83dac4c0..46456caf 100644 --- a/sway/config/seat.c +++ b/sway/config/seat.c | |||
@@ -30,7 +30,7 @@ struct seat_config *new_seat_config(const char* name) { | |||
30 | return seat; | 30 | return seat; |
31 | } | 31 | } |
32 | 32 | ||
33 | struct seat_attachment_config *seat_attachment_config_new() { | 33 | struct seat_attachment_config *seat_attachment_config_new(void) { |
34 | struct seat_attachment_config *attachment = | 34 | struct seat_attachment_config *attachment = |
35 | calloc(1, sizeof(struct seat_attachment_config)); | 35 | calloc(1, sizeof(struct seat_attachment_config)); |
36 | if (!attachment) { | 36 | if (!attachment) { |
diff --git a/sway/debug-tree.c b/sway/debug-tree.c index 9644f4e5..16b479f9 100644 --- a/sway/debug-tree.c +++ b/sway/debug-tree.c | |||
@@ -120,7 +120,7 @@ static int draw_node(cairo_t *cairo, struct sway_node *node, | |||
120 | return height; | 120 | return height; |
121 | } | 121 | } |
122 | 122 | ||
123 | void update_debug_tree() { | 123 | void update_debug_tree(void) { |
124 | if (!debug.render_tree) { | 124 | if (!debug.render_tree) { |
125 | return; | 125 | return; |
126 | } | 126 | } |
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 2d5d351f..3ddc27a0 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -30,7 +30,7 @@ | |||
30 | // when dragging to the edge of a layout container. | 30 | // when dragging to the edge of a layout container. |
31 | #define DROP_LAYOUT_BORDER 30 | 31 | #define DROP_LAYOUT_BORDER 30 |
32 | 32 | ||
33 | static uint32_t get_current_time_msec() { | 33 | static uint32_t get_current_time_msec(void) { |
34 | struct timespec now; | 34 | struct timespec now; |
35 | clock_gettime(CLOCK_MONOTONIC, &now); | 35 | clock_gettime(CLOCK_MONOTONIC, &now); |
36 | return now.tv_nsec / 1000; | 36 | return now.tv_nsec / 1000; |
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index f054ac9f..45915094 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -42,7 +42,7 @@ static const char *ipc_json_orientation_description(enum sway_container_layout l | |||
42 | return "none"; | 42 | return "none"; |
43 | } | 43 | } |
44 | 44 | ||
45 | json_object *ipc_json_get_version() { | 45 | json_object *ipc_json_get_version(void) { |
46 | int major = 0, minor = 0, patch = 0; | 46 | int major = 0, minor = 0, patch = 0; |
47 | json_object *version = json_object_new_object(); | 47 | json_object *version = json_object_new_object(); |
48 | 48 | ||
diff --git a/sway/main.c b/sway/main.c index 80111b8f..50b05b21 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -41,7 +41,7 @@ void sig_handler(int signal) { | |||
41 | sway_terminate(EXIT_SUCCESS); | 41 | sway_terminate(EXIT_SUCCESS); |
42 | } | 42 | } |
43 | 43 | ||
44 | void detect_raspi() { | 44 | void detect_raspi(void) { |
45 | bool raspi = false; | 45 | bool raspi = false; |
46 | FILE *f = fopen("/sys/firmware/devicetree/base/model", "r"); | 46 | FILE *f = fopen("/sys/firmware/devicetree/base/model", "r"); |
47 | if (!f) { | 47 | if (!f) { |
@@ -81,7 +81,7 @@ void detect_raspi() { | |||
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
84 | void detect_proprietary() { | 84 | void detect_proprietary(void) { |
85 | FILE *f = fopen("/proc/modules", "r"); | 85 | FILE *f = fopen("/proc/modules", "r"); |
86 | if (!f) { | 86 | if (!f) { |
87 | return; | 87 | return; |
@@ -116,7 +116,7 @@ void run_as_ipc_client(char *command, char *socket_path) { | |||
116 | close(socketfd); | 116 | close(socketfd); |
117 | } | 117 | } |
118 | 118 | ||
119 | static void log_env() { | 119 | static void log_env(void) { |
120 | const char *log_vars[] = { | 120 | const char *log_vars[] = { |
121 | "PATH", | 121 | "PATH", |
122 | "LD_LIBRARY_PATH", | 122 | "LD_LIBRARY_PATH", |
@@ -131,7 +131,7 @@ static void log_env() { | |||
131 | } | 131 | } |
132 | } | 132 | } |
133 | 133 | ||
134 | static void log_distro() { | 134 | static void log_distro(void) { |
135 | const char *paths[] = { | 135 | const char *paths[] = { |
136 | "/etc/lsb-release", | 136 | "/etc/lsb-release", |
137 | "/etc/os-release", | 137 | "/etc/os-release", |
@@ -158,7 +158,7 @@ static void log_distro() { | |||
158 | } | 158 | } |
159 | } | 159 | } |
160 | 160 | ||
161 | static void log_kernel() { | 161 | static void log_kernel(void) { |
162 | FILE *f = popen("uname -a", "r"); | 162 | FILE *f = popen("uname -a", "r"); |
163 | if (!f) { | 163 | if (!f) { |
164 | wlr_log(WLR_INFO, "Unable to determine kernel version"); | 164 | wlr_log(WLR_INFO, "Unable to determine kernel version"); |
diff --git a/sway/tree/container.c b/sway/tree/container.c index baaa82fd..66370a42 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -593,7 +593,7 @@ void container_update_representation(struct sway_container *con) { | |||
593 | } | 593 | } |
594 | } | 594 | } |
595 | 595 | ||
596 | size_t container_titlebar_height() { | 596 | size_t container_titlebar_height(void) { |
597 | return config->font_height + TITLEBAR_V_PADDING * 2; | 597 | return config->font_height + TITLEBAR_V_PADDING * 2; |
598 | } | 598 | } |
599 | 599 | ||