summaryrefslogtreecommitdiff
path: root/xinerama.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-04-01 12:28:28 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-04-01 12:28:28 +0200
commitdc2b6e5f3985354d42ea015afc15be2258d6b660 (patch)
tree744e51a3e7794d372f1e541b6b09af1af63b3d3c /xinerama.c
parent3c2436cb71cf37fe4f12eb6b1ccbbe3393ade2b1 (diff)
Use (void) instead of () for functions without args (Thanks fernandotcl)
See also: http://article.gmane.org/gmane.linux.kernel/1268792 The C compiler will handle (void) as "no arguments" and () as "variadic function" (equivalent to (...)) which might lead to subtle errors, such as the one which was fixed with commit 0ea64ae4.
Diffstat (limited to 'xinerama.c')
-rw-r--r--xinerama.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xinerama.c b/xinerama.c
index 6a3557c..e4b87a4 100644
--- a/xinerama.c
+++ b/xinerama.c
@@ -26,7 +26,7 @@ Rect *xr_resolutions;
static bool xinerama_active;
extern bool debug_mode;
-void xinerama_init() {
+void xinerama_init(void) {
if (!xcb_get_extension_data(conn, &xcb_xinerama_id)->present) {
DEBUG("Xinerama extension not found, disabling.\n");
return;
@@ -48,7 +48,7 @@ void xinerama_init() {
xinerama_active = true;
}
-void xinerama_query_screens() {
+void xinerama_query_screens(void) {
if (!xinerama_active)
return;