From 35246edddd952a6d83511f69cba47536495e4700 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Wed, 10 Nov 2010 18:57:13 +0000 Subject: Fix compilation in c89 mode. Signed-off-by: Johannes Schindelin --- libvncserver/scale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvncserver/scale.c') diff --git a/libvncserver/scale.c b/libvncserver/scale.c index 22f5597..6f91391 100644 --- a/libvncserver/scale.c +++ b/libvncserver/scale.c @@ -82,7 +82,7 @@ int ScaleY(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int y) /* So, all of the encodings point to the ->screen->frameBuffer, * We need to change this! */ -void rfbScaledCorrection(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int *x, int *y, int *w, int *h, char *function) +void rfbScaledCorrection(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int *x, int *y, int *w, int *h, const char *function) { double x1,y1,w1,h1, x2, y2, w2, h2; double scaleW = ((double) to->width) / ((double) from->width); -- cgit v1.2.1