summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-03-01 18:11:55 +0100
committerDave Davenport <qball@gmpclient.org>2016-03-01 18:11:55 +0100
commit7d046a1f5bcc3a55f250aed0cbfaf8a54a8d6875 (patch)
treede42f664183bf2bb6c474c13bb4404ad6a181a09 /source/helper.c
parentfb2c23a429d0206043069ca1f571b49d7cbc275f (diff)
Pack magic externs into a xcb_stuff.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/helper.c b/source/helper.c
index 5665928a..d32e6b9d 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -511,7 +511,7 @@ void remove_pid_file ( int fd )
*
* This functions exits the program with 1 when it finds an invalid configuration.
*/
-int config_sanity_check ( xcb_connection_t* xcb_connection )
+int config_sanity_check ( void )
{
// If alternative row is not set, copy the normal background color.
// Do this at the beginning as we might use it in the error dialog.
@@ -554,10 +554,10 @@ int config_sanity_check ( xcb_connection_t* xcb_connection )
// Check size
{
- int ssize = monitor_get_smallest_size ( xcb_connection );
+ int ssize = monitor_get_smallest_size ( );
if ( config.monitor >= 0 ) {
workarea mon;
- if ( monitor_get_dimension ( xcb_connection, xcb_screen, config.monitor, &mon ) ) {
+ if ( monitor_get_dimension ( config.monitor, &mon ) ) {
ssize = MIN ( mon.w, mon.h );
}
else{