projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5115315
)
elm cnp - make matchers const and static too
accepted/tizen/unified/20200907.045103
submit/tizen/20200906.212734
author
Carsten Haitzler (Rasterman)
<raster@rasterman.com>
Sat, 5 Sep 2020 14:03:44 +0000
(15:03 +0100)
committer
Jongmin Lee
<jm105.lee@samsung.com>
Sun, 6 Sep 2020 21:10:06 +0000
(06:10 +0900)
src/lib/elementary/elm_cnp.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_cnp.c
b/src/lib/elementary/elm_cnp.c
index
005e3a4
..
eb82076
100644
(file)
--- 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)
typedef struct {
const unsigned char image_sequence[16];
- size_t image_sequence_len;
+
const
size_t image_sequence_len;
const char *mimetype;
} Mimetype_Content_Matcher;
-Mimetype_Content_Matcher matchers[] = {
+
static const
Mimetype_Content_Matcher matchers[] = {
{{0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A}, 8, "image/png"},
{{0xFF, 0xD8}, 2, "image/jpeg"},
{{0x42, 0x4D}, 2, "image/x-ms-bmp"},