diff options
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, |