diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-04-06 21:08:35 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-04-06 21:08:35 +0000 |
commit | baf5bf601d9dff3e6c7b27cfa5e111531400a20b (patch) | |
tree | b056ca5b4d312cf75152be0cf6a3db880e604224 /pjsip-apps | |
parent | a471dc4d123d73e09e32aa79ab892e0106f5248f (diff) |
Fixed RTCP compilation warnings with gcc
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@393 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r-- | pjsip-apps/src/samples/siprtp.c | 4 | ||||
-rw-r--r-- | pjsip-apps/src/samples/util.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pjsip-apps/src/samples/siprtp.c b/pjsip-apps/src/samples/siprtp.c index 0f8727ae..d4d5387e 100644 --- a/pjsip-apps/src/samples/siprtp.c +++ b/pjsip-apps/src/samples/siprtp.c @@ -1411,7 +1411,7 @@ static void print_call(int call_index) else { pj_gettimeofday(&now); PJ_TIME_VAL_SUB(now, audio->rtcp.stat.rx.update); - sprintf(last_update, "%02dh:%02dm:%02d.%03ds ago", + sprintf(last_update, "%02ldh:%02ldm:%02ld.%03lds ago", now.sec / 3600, (now.sec % 3600) / 60, now.sec % 60, @@ -1454,7 +1454,7 @@ static void print_call(int call_index) else { pj_gettimeofday(&now); PJ_TIME_VAL_SUB(now, audio->rtcp.stat.tx.update); - sprintf(last_update, "%02dh:%02dm:%02d.%03ds ago", + sprintf(last_update, "%02ldh:%02ldm:%02ld.%03lds ago", now.sec / 3600, (now.sec % 3600) / 60, now.sec % 60, diff --git a/pjsip-apps/src/samples/util.h b/pjsip-apps/src/samples/util.h index 089b12fe..2e2a32c8 100644 --- a/pjsip-apps/src/samples/util.h +++ b/pjsip-apps/src/samples/util.h @@ -1,4 +1,5 @@ +#include <stdlib.h> /* strtol() */ /* Util to display the error message for the specified error code */ static int app_perror( const char *sender, const char *title, |