From c0d03cba320db3464af250a4190f98fe32272492 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Wed, 8 May 2013 11:32:12 +0930 Subject: [PATCH] vis: constify source argument to copy winding Signed-off-by: Kevin Shanahan --- include/vis/vis.h | 6 +++--- vis/vis.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/vis/vis.h b/include/vis/vis.h index 885ba08c..1b79a688 100644 --- a/include/vis/vis.h +++ b/include/vis/vis.h @@ -44,8 +44,8 @@ typedef struct { } winding_t; winding_t *NewWinding(int points); -winding_t *CopyWinding(winding_t * w); -void PlaneFromWinding(const winding_t * w, plane_t *plane); +winding_t *CopyWinding(const winding_t *w); +void PlaneFromWinding(const winding_t *w, plane_t *plane); qboolean PlaneCompare(plane_t *p1, plane_t *p2); typedef enum { pstat_none = 0, pstat_working, pstat_done } pstatus_t; @@ -139,7 +139,7 @@ extern char statetmpfile[1024]; void LeafFlow(int leafnum); void BasePortalVis(void); -void PortalFlow(portal_t * p); +void PortalFlow(portal_t *p); void CalcAmbientSounds(void); diff --git a/vis/vis.c b/vis/vis.c index 569f6866..0d17eb6e 100644 --- a/vis/vis.c +++ b/vis/vis.c @@ -166,7 +166,7 @@ prl(leaf_t * l) ================== */ winding_t * -CopyWinding(winding_t * w) +CopyWinding(const winding_t * w) { int size; winding_t *c;