Commit 7f7cd314 authored by Ghislain MARY's avatar Ghislain MARY

Fix strict-prototypes warnings.

parent 09805460
......@@ -48,7 +48,7 @@ typedef void (*OrtpLogFunc)(OrtpLogLevel lev, const char *fmt, va_list args);
ORTP_PUBLIC void ortp_set_log_file(FILE *file);
ORTP_PUBLIC void ortp_set_log_handler(OrtpLogFunc func);
ORTP_PUBLIC OrtpLogFunc ortp_get_log_handler();
ORTP_PUBLIC OrtpLogFunc ortp_get_log_handler(void);
ORTP_VAR_PUBLIC OrtpLogFunc ortp_logv_out;
......
......@@ -68,7 +68,7 @@ static const char *sched_policy_to_string(int policy){
}
#endif
static void set_high_prio(){
static void set_high_prio(void){
#ifndef _WIN32
const char *sched_pref=getenv("ORTP_SIMULATOR_SCHED_POLICY");
int policy=SCHED_OTHER;
......
......@@ -37,7 +37,7 @@ RtpScheduler *__ortp_scheduler;
extern void av_profile_init(RtpProfile *profile);
static void init_random_number_generator(){
static void init_random_number_generator(void){
#ifndef _WIN32
struct timeval t;
ortp_gettimeofday(&t,NULL);
......
......@@ -38,7 +38,7 @@
static struct timeval orig,cur;
static uint32_t posix_timer_time=0; /*in milisecond */
void posix_timer_init()
void posix_timer_init(void)
{
posix_timer.state=RTP_TIMER_RUNNING;
ortp_gettimeofday(&orig,NULL);
......@@ -48,7 +48,7 @@ void posix_timer_init()
void posix_timer_do()
void posix_timer_do(void)
{
int diff,time;
struct timeval tv;
......@@ -74,7 +74,7 @@ void posix_timer_do()
}
void posix_timer_uninit()
void posix_timer_uninit(void)
{
posix_timer.state=RTP_TIMER_STOPPED;
}
......
......@@ -101,7 +101,7 @@ extern void rtp_parse(RtpSession *session, mblk_t *mp, uint32_t local_str_ts,
struct sockaddr *addr, socklen_t addrlen);
static uint32_t uint32_t_random(){
static uint32_t uint32_t_random(void){
return ortp_random();
}
......
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