summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-13 16:17:55 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-13 16:22:46 -0700
commit6d55831ae7d1c27a6f4851449b830c248b693bfe (patch)
tree5347bed42f210d489e88b4069510d0a8325c8807
parent88045db6c44a118e96d1f76e7ba4e636d47101fc (diff)
Declare bitmap data as const
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--oclmask.bit2
-rw-r--r--oclock.bit2
-rw-r--r--oclock.c4
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);