aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Arkadiusz Hiler <arek@hiler.eu>2018-09-30 13:58:49 +0300
committerLibravatar Arkadiusz Hiler <arek@hiler.eu>2018-09-30 14:09:05 +0300
commit1e70f7b19e92c20a691f2697b2c92ea8b13daba3 (patch)
tree112f684404755d6924d7338507eaef07500ced1f /sway/main.c
parentRemove declarations that do no have definitions (diff)
downloadsway-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/main.c')
-rw-r--r--sway/main.c10
1 files changed, 5 insertions, 5 deletions
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
44void detect_raspi() { 44void 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
84void detect_proprietary() { 84void 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
119static void log_env() { 119static 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
134static void log_distro() { 134static 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
161static void log_kernel() { 161static 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");