From 6d55831ae7d1c27a6f4851449b830c248b693bfe Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 13 Aug 2022 16:17:55 -0700 Subject: Declare bitmap data as const Signed-off-by: Alan Coopersmith --- oclmask.bit | 2 +- oclock.bit | 2 +- oclock.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oclmask.bit b/oclmask.bit index 19fb3ca..41b50f2 100644 --- a/oclmask.bit +++ b/oclmask.bit @@ -1,6 +1,6 @@ #define oclmask_width 32 #define oclmask_height 32 -static unsigned char oclmask_bits[] = { +static const unsigned char oclmask_bits[] = { 0x00, 0xf0, 0x07, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x80, 0xff, 0xff, 0x00, 0xc0, 0xff, 0xff, 0x01, 0xe0, 0xff, 0xff, 0x03, 0xf0, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0x0f, 0xfc, 0xff, 0xff, 0x1f, 0xfc, 0xff, 0xff, 0x1f, diff --git a/oclock.bit b/oclock.bit index c264fe7..0af8803 100644 --- a/oclock.bit +++ b/oclock.bit @@ -1,6 +1,6 @@ #define oclock_width 32 #define oclock_height 32 -static unsigned char oclock_bits[] = { +static const unsigned char oclock_bits[] = { 0x00, 0xf0, 0x07, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x80, 0x8f, 0xf8, 0x00, 0xc0, 0xc1, 0xc1, 0x01, 0xe0, 0x80, 0x80, 0x03, 0x30, 0x00, 0x00, 0x06, 0x18, 0x00, 0x00, 0x0c, 0x1c, 0x00, 0x00, 0x1c, 0x0c, 0x00, 0x70, 0x18, diff --git a/oclock.c b/oclock.c index e36d80c..37df634 100644 --- a/oclock.c +++ b/oclock.c @@ -123,13 +123,13 @@ main(int argc, char *argv[]) XtSetArg (arg[i], XtNiconPixmap, XCreateBitmapFromData (XtDisplay(toplevel), XtScreen(toplevel)->root, - (char *)oclock_bits, + (const char *)oclock_bits, oclock_width, oclock_height)); i++; XtSetArg (arg[i], XtNiconMask, XCreateBitmapFromData (XtDisplay(toplevel), XtScreen(toplevel)->root, - (char *)oclmask_bits, + (const char *)oclmask_bits, oclmask_width, oclmask_height)); i++; XtSetValues (toplevel, arg, i); -- cgit v1.2.3