Commit c7f1892e authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Move a constant string to rodata

parent 6a46f205
2006-04-03 Matthias Clasen <>
* xdgmime.[hc]: Move xdg_mime_type_unknown to .rodata.
2006-03-06 Matthias Clasen <>
* xdgmimemagic.c: Remove superfluous extern errno
......@@ -60,7 +60,7 @@ static XdgCallbackList *callback_list = NULL;
XdgMimeCache **_caches = NULL;
static int n_caches = 0;
const char *xdg_mime_type_unknown = "application/octet-stream";
const char xdg_mime_type_unknown[] = "application/octet-stream";
......@@ -65,7 +65,7 @@ typedef void (*XdgMimeDestroy) (void *user_data);
#define xdg_mime_type_unknown XDG_ENTRY(type_unknown)
extern const char *xdg_mime_type_unknown;
extern const char xdg_mime_type_unknown[];
#define XDG_MIME_TYPE_UNKNOWN xdg_mime_type_unknown
const char *xdg_mime_get_mime_type_for_data (const void *data,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment