Commit 1f75e573 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Spare a few relocs

parent 80304bce
......@@ -229,7 +229,7 @@ void libvlc_event_send( libvlc_event_manager_t * p_em,
*
* Get the char * name of an event type.
**************************************************************************/
static const char * event_type_to_name[] =
static const char event_type_to_name[][35] =
{
#define EVENT(a) [a]=#a
EVENT(libvlc_MediaMetaChanged),
......@@ -265,7 +265,7 @@ static const char * event_type_to_name[] =
#undef EVENT
};
static const char * unkwown_event_name = "Unknown Event";
static const char unkwown_event_name[] = "Unknown Event";
const char * libvlc_event_type_name( libvlc_event_type_t event_type )
{
......
......@@ -1441,7 +1441,7 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
VLC_FOURCC('c', 'c', '3', ' '),
VLC_FOURCC('c', 'c', '4', ' '),
};
static const char *ppsz_description[4] = {
static const char ppsz_description[4][18] = {
N_("Closed captions 1"),
N_("Closed captions 2"),
N_("Closed captions 3"),
......
......@@ -70,7 +70,7 @@ typedef struct vlc_event_listeners_group_t
} vlc_event_listeners_group_t;
#ifdef DEBUG_EVENT
static const char * ppsz_event_type_to_name[] =
static const char ppsz_event_type_to_name[][33] =
{
[vlc_InputItemMetaChanged] = "vlc_InputItemMetaChanged",
[vlc_InputItemSubItemAdded] = "vlc_InputItemSubItemAdded",
......
......@@ -523,8 +523,8 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
#ifdef UNDER_CE
int i_dummy;
#endif
static const char * ppsz_type[4] = { "", " error", " warning", " debug" };
static const char *ppsz_color[4] = { WHITE, RED, YELLOW, GRAY };
static const char ppsz_type[4][9] = { "", " error", " warning", " debug" };
static const char ppsz_color[4][8] = { WHITE, RED, YELLOW, GRAY };
const char *psz_object;
libvlc_priv_t *priv = libvlc_priv (p_this->p_libvlc);
int i_type = p_item->i_type;
......
......@@ -82,7 +82,7 @@ static struct
{ 0, NULL }
};
static const char *__gai_unknownerr = "Unrecognized error number";
static const char __gai_unknownerr[] = "Unrecognized error number";
/****************************************************************************
* Converts an EAI_* error code into human readable english text.
......
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