From 5b84b6cfc0dcfca4bdc75ff328d812c53f67c1cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Nov 2012 14:30:23 +0200 Subject: [PATCH] make a few functions static --- src/vdagent-x11-randr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vdagent-x11-randr.c b/src/vdagent-x11-randr.c index fea2428..2ffd264 100644 --- a/src/vdagent-x11-randr.c +++ b/src/vdagent-x11-randr.c @@ -234,7 +234,7 @@ static void delete_mode(struct vdagent_x11 *x11, int output_index) } } -void set_reduced_cvt_mode(XRRModeInfo *mode, int width, int height) +static void set_reduced_cvt_mode(XRRModeInfo *mode, int width, int height) { /* Code taken from hw/xfree86/modes/xf86cvt.c * See that file for lineage. Originated in public domain code @@ -474,7 +474,7 @@ static uint32_t max_int(uint32_t x, uint32_t y) return x > y ? x : y; } -int constrain_to_range(uint32_t low, uint32_t *val, uint32_t high) +static int constrain_to_range(uint32_t low, uint32_t *val, uint32_t high) { if (low <= *val && *val <= high) { return 0; @@ -488,7 +488,7 @@ int constrain_to_range(uint32_t low, uint32_t *val, uint32_t high) return 1; } -void constrain_to_screen(struct vdagent_x11 *x11, uint32_t *w, uint32_t *h) +static void constrain_to_screen(struct vdagent_x11 *x11, uint32_t *w, uint32_t *h) { uint32_t lx, ly, hx, hy; uint32_t orig_h = *h; @@ -558,7 +558,7 @@ static void zero_base_monitors(struct vdagent_x11 *x11, *height = max_y; } -int same_monitor_configs(struct vdagent_x11 *x11, VDAgentMonitorsConfig *mon) +static int same_monitor_configs(struct vdagent_x11 *x11, VDAgentMonitorsConfig *mon) { int i; XRRModeInfo *mode; -- 2.11.4.GIT