Mainly needing to put "static" first and "__thread" earlier.
caid2name(uint16_t caid)
{
const char *s = NULL;
- static char __thread buf[20];
+ static __thread char buf[20];
struct caid_tab *tab;
int i;
static void dvr_thread_epilog(dvr_entry_t *de, const char *dvr_postproc);
-const static int prio2weight[6] = {
+static const int prio2weight[6] = {
[DVR_PRIO_IMPORTANT] = 500,
[DVR_PRIO_HIGH] = 400,
[DVR_PRIO_NORMAL] = 300,
static const char *_genre_get_name(int a, int b, const char *lang)
{
- static char __thread name[64];
+ static __thread char name[64];
size_t l = 0;
const char **p = _epg_genre_names[a][b];
name[0] = '\0';
htsp_async_send(m, HTSP_ASYNC_EPG, HTSP_ASYNC_AUX_EPG, ebc);
}
-const static char frametypearray[PKT_NTYPES] = {
+static const char frametypearray[PKT_NTYPES] = {
[PKT_I_FRAME] = 'I',
[PKT_P_FRAME] = 'P',
[PKT_B_FRAME] = 'B',
char *
http_arg_get_remove(struct http_arg_list *list, const char *name)
{
- static char __thread buf[128];
+ static __thread char buf[128];
int empty;
http_arg_t *ra;
TAILQ_FOREACH(ra, list, link)
const char *dvb_sat_position_to_str( int position, char *buf, size_t buflen );
-const int dvb_sat_position_from_str( const char *buf );
+int dvb_sat_position_from_str( const char *buf );
static inline int dvb_modulation_is_none_or_auto ( int modulation )
{
const char *dvb_rolloff2str(int p)
{
- static char __thread buf[16];
+ static __thread char buf[16];
const char *res = dvb_common2str(p);
if (res)
return res;
return dvb_verify(atoi(p) * 10, rolloff_table);
}
-const static struct strtab delsystab[] = {
+static const struct strtab delsystab[] = {
{ "NONE", DVB_SYS_NONE },
{ "DVB-C", DVB_SYS_DVBC_ANNEX_A },
{ "DVBC/ANNEX_A", DVB_SYS_DVBC_ANNEX_A },
const char *dvb_fec2str(int p)
{
- static char __thread buf[16];
+ static __thread char buf[16];
const char *res = dvb_common2str(p);
if (res)
return res;
return dvb_verify(hi * 100 + lo, fec_table);
}
-const static struct strtab qamtab[] = {
+static const struct strtab qamtab[] = {
{ "NONE", DVB_MOD_NONE },
{ "AUTO", DVB_MOD_AUTO },
{ "QPSK", DVB_MOD_QPSK },
const char *dvb_bw2str(int p)
{
- static char __thread buf[17];
+ static __thread char buf[17];
const char *res = dvb_common2str(p);
if (res)
return res;
return dvb_verify(hi, bw_table);
}
-const static struct strtab invertab[] = {
+static const struct strtab invertab[] = {
{ "NONE", DVB_INVERSION_UNDEFINED },
{ "AUTO", DVB_INVERSION_AUTO },
{ "ON", DVB_INVERSION_ON },
};
dvb_str2val(inver);
-const static struct strtab modetab[] = {
+static const struct strtab modetab[] = {
{ "NONE", DVB_TRANSMISSION_MODE_NONE },
{ "AUTO", DVB_TRANSMISSION_MODE_AUTO },
{ "1k", DVB_TRANSMISSION_MODE_1K },
};
dvb_str2val(mode);
-const static struct strtab guardtab[] = {
+static const struct strtab guardtab[] = {
{ "NONE", DVB_GUARD_INTERVAL_NONE },
{ "AUTO", DVB_GUARD_INTERVAL_AUTO },
{ "1/4", DVB_GUARD_INTERVAL_1_4 },
};
dvb_str2val(guard);
-const static struct strtab hiertab[] = {
+static const struct strtab hiertab[] = {
{ "NONE", DVB_HIERARCHY_NONE },
{ "AUTO", DVB_HIERARCHY_AUTO },
{ "1", DVB_HIERARCHY_1 },
};
dvb_str2val(hier);
-const static struct strtab poltab[] = {
+static const struct strtab poltab[] = {
{ "V", DVB_POLARISATION_VERTICAL },
{ "H", DVB_POLARISATION_HORIZONTAL },
{ "L", DVB_POLARISATION_CIRCULAR_LEFT },
};
dvb_str2val(pol);
-const static struct strtab typetab[] = {
+static const struct strtab typetab[] = {
{"DVB-T", DVB_TYPE_T},
{"DVB-C", DVB_TYPE_C},
{"DVB-S", DVB_TYPE_S},
};
dvb_str2val(type);
-const static struct strtab pilottab[] = {
+static const struct strtab pilottab[] = {
{"NONE", DVB_PILOT_NONE},
{"AUTO", DVB_PILOT_AUTO},
{"ON", DVB_PILOT_ON},
};
dvb_str2val(pilot);
-const static struct strtab plsmodetab[] = {
+static const struct strtab plsmodetab[] = {
{"ROOT", DVB_PLS_ROOT},
{"GOLD", DVB_PLS_GOLD},
{"COMBO", DVB_PLS_COMBO},
return buf;
}
-const int
+int
dvb_sat_position_from_str( const char *buf )
{
const char *s = buf;
ddci_rd_thread->lddci_recv_pkgCntSL = 0;
}
-static int inline
+static inline int
ddci_ts_sync_count ( const uint8_t *tsb, int len )
{
const uint8_t *start = tsb;
static inline int data_noise( mpegts_packet_t *mp ) { return 0; }
#endif
-static int inline
+static inline int
get_pcr ( const uint8_t *tsb, int64_t *rpcr )
{
int_fast64_t pcr;
return 1;
}
-static int inline
+static inline int
ts_sync_count ( const uint8_t *tsb, int len )
{
const uint8_t *start = tsb;
int transil,
int ignore_bad_chars )
{
- static char __thread buf[128];
+ static __thread char buf[128];
const char *delim;
if (charset == NULL || charset[0] == '\0' ||
/**
* MPEG layer 1/2/3 parser
*/
-const static int mpa_br[2][3][16] = {
+static const int mpa_br[2][3][16] = {
{
{0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 0},
{0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 0},
}
};
-const static int mpa_sr[4] = {44100, 48000, 32000, 0};
-const static int mpa_sri[4] = {4, 3, 5, 0};
+static const int mpa_sr[4] = {44100, 48000, 32000, 0};
+static const int mpa_sri[4] = {4, 3, 5, 0};
static inline int
mpa_valid_frame(uint32_t h)
/**
* (E)AC3 audio parser
*/
-const static int ac3_freq_tab[4] = {48000, 44100, 32000, 0};
+static const int ac3_freq_tab[4] = {48000, 44100, 32000, 0};
-const static uint16_t ac3_frame_size_tab[38][3] = {
+static const uint16_t ac3_frame_size_tab[38][3] = {
{ 64, 69, 96 },
{ 64, 70, 96 },
{ 80, 87, 120 },
*
*/
-const static int prio2weight[] = {
+static const int prio2weight[] = {
[PROFILE_SPRIO_DVR_IMPORTANT] = 525,
[PROFILE_SPRIO_DVR_HIGH] = 425,
[PROFILE_SPRIO_DVR_NORMAL] = 325,
/**
*
*/
-const static struct strtab typetab[] = {
+static const struct strtab typetab[] = {
{ "bool", PT_BOOL },
{ "int", PT_INT },
{ "str", PT_STR },
const char *
codec_get_title(AVCodec *self)
{
- static char __thread codec_title[TVH_TITLE_LEN];
+ static __thread char codec_title[TVH_TITLE_LEN];
memset(codec_title, 0, sizeof(codec_title));
if (
const char *
tvh_codec_profile_get_title(TVHCodecProfile *self)
{
- static char __thread profile_title[TVH_TITLE_LEN];
+ static __thread char profile_title[TVH_TITLE_LEN];
memset(profile_title, 0, sizeof(profile_title));
if (str_snprintf(profile_title, sizeof(profile_title),