diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-04 03:49:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-04 03:49:32 +0000 |
commit | c7f1892ef8bd6053a86836ddf63d17550d5d7b9b (patch) | |
tree | 48d4dd59417a91cd2f2682ccaca1270fb810df66 /gtk/xdgmime | |
parent | 6a46f2050e885400e87f7ca48377f2c572b99b28 (diff) | |
download | gtk+-c7f1892ef8bd6053a86836ddf63d17550d5d7b9b.tar.gz |
Move a constant string to rodata
Diffstat (limited to 'gtk/xdgmime')
-rw-r--r-- | gtk/xdgmime/ChangeLog | 4 | ||||
-rw-r--r-- | gtk/xdgmime/xdgmime.c | 2 | ||||
-rw-r--r-- | gtk/xdgmime/xdgmime.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog index dcb67144d9..c04293a45d 100644 --- a/gtk/xdgmime/ChangeLog +++ b/gtk/xdgmime/ChangeLog @@ -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 diff --git a/gtk/xdgmime/xdgmime.c b/gtk/xdgmime/xdgmime.c index 931576e6cc..2cc1e68d27 100644 --- a/gtk/xdgmime/xdgmime.c +++ b/gtk/xdgmime/xdgmime.c @@ -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 diff --git a/gtk/xdgmime/xdgmime.h b/gtk/xdgmime/xdgmime.h index 08103fc64c..2fa4a7cf39 100644 --- a/gtk/xdgmime/xdgmime.h +++ b/gtk/xdgmime/xdgmime.h @@ -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, |