From: Christophe CURIS <[email protected]>

Do not declare a variable inside a loop construct, that's a C99 construct
that will fail on C89/C90 compilers;

In symbol management file, move function to be with its consistent peers.

Signed-off-by: Christophe CURIS <[email protected]>
---
 wrlib/draw.c         | 4 +++-
 wrlib/libwraster.map | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/wrlib/draw.c b/wrlib/draw.c
index c6368ab..a9a9626 100644
--- a/wrlib/draw.c
+++ b/wrlib/draw.c
@@ -465,7 +465,9 @@ void ROperateLines(RImage * image, int operation, const 
RPoint * points, int npo
 
 void ROperateRectangle(RImage *image, int operation, int x0, int y0, int x1, 
int y1, const RColor *color)
 {
-       for (int y = y0; y <= y1; y++) {
+       int y;
+
+       for (y = y0; y <= y1; y++) {
                genericLine(image, x0, y, x1, y, color, operation, False);
        }
 }
diff --git a/wrlib/libwraster.map b/wrlib/libwraster.map
index ffa64a7..062dcd9 100644
--- a/wrlib/libwraster.map
+++ b/wrlib/libwraster.map
@@ -41,7 +41,6 @@ LIBWRASTER3
     RDestroyXImage;
     RDrawLine;
     RDrawLines;
-    ROperateRectangle;
     RDrawSegments;
     RErrorCode;
     RFillImage;
@@ -61,6 +60,7 @@ LIBWRASTER3
     ROperateLines;
     ROperatePixel;
     ROperatePixels;
+    ROperateRectangle;
     ROperateSegments;
     RPutPixel;
     RPutPixels;
-- 
1.9.2


-- 
To unsubscribe, send mail to [email protected].

Reply via email to