Changeset 8320


Ignore:
Timestamp:
02/01/21 13:49:53 (2 months ago)
Author:
paulf
Message:

changed offset to size_t

Location:
trunk/src/archiving/tankplayer_tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/archiving/tankplayer_tools/remux_code.c

    r8143 r8320  
    3838 
    3939typedef struct _TBUF { 
    40     int    offset;    /* offset in bytes from beginning of input file */ 
     40    size_t    offset;    /* offset in bytes from beginning of input file */ 
    4141    int    size;      /* length in bytes of this TRACEBUF2 message    */ 
    4242    double time;      /* a time from the header of this TRACEBUF2 msg */ 
     
    6868  char          byte_order;       /* byte order of this TYPE_TRACEBUF2 msg */ 
    6969  int           byte_per_sample;  /* for TYPE_TRACEBUF2 msg               */ 
    70   int           totbytes = 0;     /* total # bytes read from file so far  */ 
     70  size_t        totbytes = 0;     /* total # bytes read from file so far  */ 
    7171  int           nbuf = 0;         /* total # msgs read from file so far   */ 
    7272  int           maxnumbuf;        /* number of buffers we can store       */ 
     
    129129     { 
    130130       logit( "et", "trex_tbuf: WaveMsg2MakeLocal() error.\n" ); 
    131        logit("e","tbuf: %4s %3s %2s %2s  %13.2f+%4.2f %3d %3d %s %d at offset: %d\n", 
     131       logit("e","tbuf: %4s %3s %2s %2s  %13.2f+%4.2f %3d %3d %s %d at offset: %ld\n", 
    132132             pkt.trh2.sta, pkt.trh2.chan, pkt.trh2.net, pkt.trh2.loc, 
    133133             pkt.trh2.starttime, pkt.trh2.endtime-pkt.trh2.starttime, 
     
    136136       if(rc == -1) 
    137137       { 
    138          logit("et", "trex_tbuf: WaveMsg2MakeLocal() failed!  Processor hopelessly lost at offset %d.  quitting!\n", 
     138         logit("et", "trex_tbuf: WaveMsg2MakeLocal() failed!  Processor hopelessly lost at offset %ld.  quitting!\n", 
    139139               totbytes); 
    140140         goto done; 
     
    220220                != tbuf[ib].size ) 
    221221     { 
    222         logit("et", "remux_tracebufs(): error reading input file at byte %d\n", 
     222        logit("et", "remux_tracebufs(): error reading input file at byte %ld\n", 
    223223                tbuf[ib].offset ); 
    224224        goto done; 
  • trunk/src/archiving/tankplayer_tools/remux_tbuf.c

    r7061 r8320  
    4040 
    4141/* versioning added in the second incarnation which allows remux_tbuf to run without any EW_LOG var set */ 
    42 #define VERSION_NUMBER "0.0.2 2012.12.07" 
     42#define VERSION_NUMBER "0.0.3 2021.02.01" 
    4343 
    4444int main( int argc, char *argv[] ) { 
Note: See TracChangeset for help on using the changeset viewer.