summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2012-11-22 14:30:23 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2012-11-26 12:28:20 +0100
commit5b84b6cfc0dcfca4bdc75ff328d812c53f67c1cf (patch)
tree794b2597f227c8af1942ae25595dda42798af82b
parent17d2d554335e90e140120bd0598c60ce33d44022 (diff)
downloadvd_agent-5b84b6cfc0dcfca4bdc75ff328d812c53f67c1cf.tar.gz
vd_agent-5b84b6cfc0dcfca4bdc75ff328d812c53f67c1cf.tar.xz
vd_agent-5b84b6cfc0dcfca4bdc75ff328d812c53f67c1cf.zip
make a few functions static
-rw-r--r--src/vdagent-x11-randr.c8
1 files 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;