Browse Source

TT#111150 Do not use old-style declarations

Change-Id: I08a702ebfbcc5d3ac1dca284abdaa3f6567b9272
Warned-by: gcc -Wold-style-declaration
pull/1262/head
Guillem Jover 5 years ago
parent
commit
adbd071c14
11 changed files with 16 additions and 16 deletions
  1. +1
    -1
      daemon/call_interfaces.c
  2. +1
    -1
      daemon/crypto.c
  3. +1
    -1
      daemon/log.c
  4. +1
    -1
      daemon/log.h
  5. +1
    -1
      daemon/media_player.c
  6. +1
    -1
      include/crypto.h
  7. +2
    -2
      lib/auxlib.c
  8. +4
    -4
      lib/codeclib.c
  9. +2
    -2
      recording-daemon/db.c
  10. +1
    -1
      recording-daemon/recaux.c
  11. +1
    -1
      recording-daemon/recaux.h

+ 1
- 1
daemon/call_interfaces.c View File

@ -2428,7 +2428,7 @@ void call_interfaces_timer() {
fragments_cleanup(0);
}
unsigned static int frag_key_hash(const void *A) {
static unsigned int frag_key_hash(const void *A) {
const struct fragment_key *a = A;
return str_hash(&a->call_id) ^ str_hash(&a->from_tag);
}


+ 1
- 1
daemon/crypto.c View File

@ -19,7 +19,7 @@
GString __thread *crypto_debug_string;
__thread GString *crypto_debug_string;


+ 1
- 1
daemon/log.c View File

@ -13,7 +13,7 @@
struct log_info __thread log_info;
__thread struct log_info log_info;
int _log_facility_cdr = 0;
int _log_facility_rtcp = 0;


+ 1
- 1
daemon/log.h View File

@ -36,7 +36,7 @@ extern int _log_facility_rtcp;
extern int _log_facility_dtmf;
extern struct log_info __thread log_info;
extern __thread struct log_info log_info;


+ 1
- 1
daemon/media_player.c View File

@ -25,7 +25,7 @@
#ifdef WITH_TRANSCODING
static struct timerthread media_player_thread;
static MYSQL __thread *mysql_conn;
static __thread MYSQL *mysql_conn;
static void media_player_read_packet(struct media_player *mp);
#endif


+ 1
- 1
include/crypto.h View File

@ -102,7 +102,7 @@ struct crypto_context {
extern const struct crypto_suite *crypto_suites;
extern const unsigned int num_crypto_suites;
extern GString __thread *crypto_debug_string;
extern __thread GString *crypto_debug_string;


+ 2
- 2
lib/auxlib.c View File

@ -23,8 +23,8 @@ static int version;
struct rtpengine_common_config *rtpe_common_config_ptr;
__thread struct timeval rtpe_now;
static struct thread_buf __thread t_bufs[NUM_THREAD_BUFS];
static int __thread t_buf_idx;
static __thread struct thread_buf t_bufs[NUM_THREAD_BUFS];
static __thread int t_buf_idx;
void daemonize(void) {


+ 4
- 4
lib/codeclib.c View File

@ -1590,7 +1590,7 @@ static void codeclib_key_value_parse(const str *instr, int need_value,
const static unsigned int amr_bitrates[AMR_FT_TYPES] = {
static const unsigned int amr_bitrates[AMR_FT_TYPES] = {
4750, // 0
5150, // 1
5900, // 2
@ -1606,7 +1606,7 @@ const static unsigned int amr_bitrates[AMR_FT_TYPES] = {
0, // invalid // 12
0, // invalid // 13
};
const static unsigned int amr_bits_per_frame[AMR_FT_TYPES] = {
static const unsigned int amr_bits_per_frame[AMR_FT_TYPES] = {
95, // 4.75 kbit/s // 0
103, // 5.15 kbit/s // 1
118, // 5.90 kbit/s // 2
@ -1622,7 +1622,7 @@ const static unsigned int amr_bits_per_frame[AMR_FT_TYPES] = {
0, // invalid // 12
0, // invalid // 13
};
const static unsigned int amr_wb_bitrates[AMR_FT_TYPES] = {
static const unsigned int amr_wb_bitrates[AMR_FT_TYPES] = {
6600, // 0
8850, // 1
12650, // 2
@ -1638,7 +1638,7 @@ const static unsigned int amr_wb_bitrates[AMR_FT_TYPES] = {
0, // invalid // 12
0, // invalid // 13
};
const static unsigned int amr_wb_bits_per_frame[AMR_FT_TYPES] = {
static const unsigned int amr_wb_bits_per_frame[AMR_FT_TYPES] = {
132, // 6.60 kbit/s // 0
177, // 8.85 kbit/s // 1
253, // 12.65 kbit/s // 2


+ 2
- 2
recording-daemon/db.c View File

@ -53,8 +53,8 @@ CREATE TABLE `recording_metakeys` (
static MYSQL __thread *mysql_conn;
static MYSQL_STMT __thread
static __thread MYSQL *mysql_conn;
static __thread MYSQL_STMT
*stm_insert_call,
*stm_close_call,
*stm_insert_stream,


+ 1
- 1
recording-daemon/recaux.c View File

@ -3,7 +3,7 @@
#include <stdarg.h>
int __thread __sscanf_hack_var;
__thread int __sscanf_hack_var;
int __sscanf_match(const char *str, const char *fmt, ...) {


+ 1
- 1
recording-daemon/recaux.h View File

@ -1,7 +1,7 @@
#ifndef _RECAUX_H_
#define _RECAUX_H_
extern int __thread __sscanf_hack_var;
extern __thread int __sscanf_hack_var;
#define sscanf_match(str, format, ...) __sscanf_match(str, format "%n", ##__VA_ARGS__, &__sscanf_hack_var)
int __sscanf_match(const char *str, const char *fmt, ...) __attribute__ ((__format__ (__scanf__, 2, 3)));


Loading…
Cancel
Save