IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2016, 11:38:17 AM (10 years ago)
Author:
eugene
Message:

fix signed / unsigned inconsistencies; free memory in tablecomp.c test; drop tests for non-ansi-C %L-style formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/libfits/test/zlib.c

    r38442 r39421  
    1616  tmp = Pout[3]; Pout[3] = Pout[4]; Pout[4] = tmp; }
    1717
    18 int main (int argc, char **argv) {
     18int main (void) {
    1919 
    2020  plan_tests (14);
     
    3030  {
    3131    z_stream zdn;
    32     zdn.next_in = (char *) srcbuf;
     32    zdn.next_in = (unsigned char *) srcbuf;
    3333    zdn.avail_in = NSRC * sizeof(double);
    34     zdn.next_out = (char *) tgtbuf;
     34    zdn.next_out = (unsigned char *) tgtbuf;
    3535    zdn.avail_out = NTGT * sizeof(double);
    3636 
     
    8383  {
    8484    z_stream zup;
    85     zup.next_in = (char *) tgtbuf;
     85    zup.next_in = (unsigned char *) tgtbuf;
    8686    zup.avail_in = NTGT * sizeof(double);
    87     zup.next_out = (char *) outbuf;
     87    zup.next_out = (unsigned char *) outbuf;
    8888    zup.avail_out = NOUT * sizeof(double);
    8989 
     
    120120  {
    121121    z_stream zdn;
    122     zdn.next_in = (char *) srcbuf;
     122    zdn.next_in = (unsigned char *) srcbuf;
    123123    zdn.avail_in = NSRC * sizeof(double);
    124     zdn.next_out = (char *) tgtbuf;
     124    zdn.next_out = (unsigned char *) tgtbuf;
    125125    zdn.avail_out = NTGT * sizeof(double);
    126126 
     
    174174  {
    175175    z_stream zup;
    176     zup.next_in = (char *) tgtbuf;
     176    zup.next_in = (unsigned char *) tgtbuf;
    177177    zup.avail_in = NTGT * sizeof(double);
    178     zup.next_out = (char *) outbuf;
     178    zup.next_out = (unsigned char *) outbuf;
    179179    zup.avail_out = NOUT * sizeof(double);
    180180 
Note: See TracChangeset for help on using the changeset viewer.