summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-05 15:03:44 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-05 15:03:44 +0100
commit5d058c98fd288588c1a6ac80bb631e01ad5569ff (patch)
treeb6947b976a7b0b87755587725a3e60968ebae4a2 /src/lib
parentf8ef50eaaab4da110b23570c03e06267869fa2b3 (diff)
elm cnp - make matchers const and static too
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/elm_cnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c
index 005e3a4595..eb820766f0 100644
--- a/src/lib/elementary/elm_cnp.c
+++ b/src/lib/elementary/elm_cnp.c
@@ -53,11 +53,11 @@ _elm_sel_format_to_mime_type(Elm_Sel_Format format)
53 53
54typedef struct { 54typedef struct {
55 const unsigned char image_sequence[16]; 55 const unsigned char image_sequence[16];
56 size_t image_sequence_len; 56 const size_t image_sequence_len;
57 const char *mimetype; 57 const char *mimetype;
58} Mimetype_Content_Matcher; 58} Mimetype_Content_Matcher;
59 59
60Mimetype_Content_Matcher matchers[] = { 60static const Mimetype_Content_Matcher matchers[] = {
61 {{0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A}, 8, "image/png"}, 61 {{0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A}, 8, "image/png"},
62 {{0xFF, 0xD8}, 2, "image/jpeg"}, 62 {{0xFF, 0xD8}, 2, "image/jpeg"},
63 {{0x42, 0x4D}, 2, "image/x-ms-bmp"}, 63 {{0x42, 0x4D}, 2, "image/x-ms-bmp"},