summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-01 12:59:33 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-01 12:59:33 -0700
commit11fa7c2d7c5c668ea921f1dbc6b70e97e3535afe (patch)
tree76ae750665beb194711b9d25f20b126416081d33 /struct.c
parent92b565d9f9829cc0b47d019d336ef664d3f013e2 (diff)
makeBitmap: declare raster parameter const as recommended by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index a44b1e8..2463180 100644
--- a/struct.c
+++ b/struct.c
@@ -112,7 +112,8 @@ makeStrike(FontPtr font, int sizeX, int sizeY)
BitmapPtr
makeBitmap(StrikePtr strike, int code,
int advanceWidth, int horiBearingX, int horiBearingY,
- int width, int height, int stride, unsigned char *raster, int crop)
+ int width, int height, int stride,
+ const unsigned char *raster, int crop)
{
BitmapPtr bitmap;
int i, j, x, y;