Move a constant string to rodata

This commit is contained in:
Matthias Clasen 2006-04-04 03:49:32 +00:00
parent 6a46f2050e
commit c7f1892ef8
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-04-03 Matthias Clasen <mclasen@redhat.com>
* xdgmime.[hc]: Move xdg_mime_type_unknown to .rodata.
2006-03-06 Matthias Clasen <mclasen@redhat.com>
* xdgmimemagic.c: Remove superfluous extern errno

View File

@ -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";
enum

View File

@ -65,7 +65,7 @@ typedef void (*XdgMimeDestroy) (void *user_data);
#define xdg_mime_type_unknown XDG_ENTRY(type_unknown)
#endif
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,