From c9ff983435d72ff863ddb675f45da288467c89a2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 7 May 2023 11:00:20 -0700 Subject: Make order of arguments in function prototypes match definitions Found by cppcheck: apm_funcs.c:1026:45: warning: Function 'ApmSubsequentSolidBresenhamLine' argument order different: declaration 'pScrn, x1, y1, octant, err, e1, e2, length' definition 'pScrn, x1, y1, e1, e2, err, length, octant' [funcArgOrderDifferent] apm_funcs.c:1087:49: warning: Function 'ApmSubsequentSolidBresenhamLine6422' argument order different: declaration 'pScrn, x1, y1, octant, err, e1, e2, length' definition 'pScrn, x1, y1, e1, e2, err, length, octant' [funcArgOrderDifferent] Signed-off-by: Alan Coopersmith --- src/apm_funcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apm_funcs.c b/src/apm_funcs.c index 29328d1..fc45ca6 100644 --- a/src/apm_funcs.c +++ b/src/apm_funcs.c @@ -77,8 +77,8 @@ static void A(SubsequentScreenToScreenColorExpandFill)(ScrnInfoPtr pScrn, int w, int h, int srcx, int srcy, int offset); -static void A(SubsequentSolidBresenhamLine)(ScrnInfoPtr pScrn, int x1, int y1, int octant, int err, int e1, int e2, int length); -static void A(SubsequentSolidBresenhamLine6422)(ScrnInfoPtr pScrn, int x1, int y1, int octant, int err, int e1, int e2, int length); +static void A(SubsequentSolidBresenhamLine)(ScrnInfoPtr pScrn, int x1, int y1, int e1, int e2, int err, int length, int octant); +static void A(SubsequentSolidBresenhamLine6422)(ScrnInfoPtr pScrn, int x1, int y1, int e1, int e2, int err, int length, int octant); static void A(SetClippingRectangle)(ScrnInfoPtr pScrn, int x1, int y1, int x2, int y2); static void A(WritePixmap)(ScrnInfoPtr pScrn, int x, int y, int w, int h, unsigned char *src, int srcwidth, int rop, -- cgit v1.2.3