summaryrefslogtreecommitdiffstats
path: root/libvncserver/scale.c
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <kiagiadakis.george@gmail.com>2010-11-10 18:57:13 +0000
committerJohannes Schindelin <johannes.schindelin@gmx.de>2011-04-28 11:42:59 +0200
commit35246edddd952a6d83511f69cba47536495e4700 (patch)
treeea10ab42c5c059dc245b1061068d3de49263daa9 /libvncserver/scale.c
parentd8fca9d013a8da92499cb3889dd0f53d3b4e437f (diff)
downloadlibtdevnc-35246edddd952a6d83511f69cba47536495e4700.tar.gz
libtdevnc-35246edddd952a6d83511f69cba47536495e4700.zip
Fix compilation in c89 mode.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncserver/scale.c')
-rw-r--r--libvncserver/scale.c2
1 files changed, 1 insertions, 1 deletions
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);