Changeset 393


Ignore:
Timestamp:
Apr 6, 2006 9:08:35 PM (18 years ago)
Author:
bennylp
Message:

Fixed RTCP compilation warnings with gcc

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/siprtp.c

    r392 r393  
    14121412        pj_gettimeofday(&now); 
    14131413        PJ_TIME_VAL_SUB(now, audio->rtcp.stat.rx.update); 
    1414         sprintf(last_update, "%02dh:%02dm:%02d.%03ds ago", 
     1414        sprintf(last_update, "%02ldh:%02ldm:%02ld.%03lds ago", 
    14151415                now.sec / 3600, 
    14161416                (now.sec % 3600) / 60, 
     
    14551455        pj_gettimeofday(&now); 
    14561456        PJ_TIME_VAL_SUB(now, audio->rtcp.stat.tx.update); 
    1457         sprintf(last_update, "%02dh:%02dm:%02d.%03ds ago", 
     1457        sprintf(last_update, "%02ldh:%02ldm:%02ld.%03lds ago", 
    14581458                now.sec / 3600, 
    14591459                (now.sec % 3600) / 60, 
  • pjproject/trunk/pjsip-apps/src/samples/util.h

    r368 r393  
    11 
     2#include <stdlib.h>     /* strtol() */ 
    23 
    34/* Util to display the error message for the specified error code  */ 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_settings.c

    r390 r393  
    685685            pj_gettimeofday(&now); 
    686686            PJ_TIME_VAL_SUB(now, stat.rx.update); 
    687             sprintf(last_update, "%02dh:%02dm:%02d.%03ds ago", 
     687            sprintf(last_update, "%02ldh:%02ldm:%02ld.%03lds ago", 
    688688                    now.sec / 3600, 
    689689                    (now.sec % 3600) / 60, 
     
    730730            pj_gettimeofday(&now); 
    731731            PJ_TIME_VAL_SUB(now, stat.tx.update); 
    732             sprintf(last_update, "%02dh:%02dm:%02d.%03ds ago", 
     732            sprintf(last_update, "%02ldh:%02ldm:%02ld.%03lds ago", 
    733733                    now.sec / 3600, 
    734734                    (now.sec % 3600) / 60, 
Note: See TracChangeset for help on using the changeset viewer.