IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2006, 4:12:32 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jhoblitt/ippdb/tests/pop.c

    r8020 r8026  
    221221        psS32           bytes;
    222222        char            md5sum[256];
    223         char            class_id[256];
    224         char            uri[256];
    225 
    226         dbh = psDBInit("localhost", "test", NULL, "test");
    227         if (!dbh) {
    228             exit(EXIT_FAILURE);
    229         }
    230 
    231         if (!pzPendingImfilePop(dbh, (char **)&exp_id, &bytes, (char **)&md5sum, (char **)&class_id, (char **)&uri)) {
     223        char            class[256];
     224        char            class_id[256];
     225        char            uri[256];
     226
     227        dbh = psDBInit("localhost", "test", NULL, "test");
     228        if (!dbh) {
     229            exit(EXIT_FAILURE);
     230        }
     231
     232        if (!pzPendingImfilePop(dbh, (char **)&exp_id, &bytes, (char **)&md5sum, (char **)&class, (char **)&class_id, (char **)&uri)) {
    232233            exit(EXIT_FAILURE);
    233234        }
     
    259260        psDB            *dbh;
    260261        char            exp_id[256];
    261         char            class_id[256];
    262         char            uri[256];
    263 
    264         dbh = psDBInit("localhost", "test", NULL, "test");
    265         if (!dbh) {
    266             exit(EXIT_FAILURE);
    267         }
    268 
    269         if (!newImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri)) {
     262        char            class[256];
     263        char            class_id[256];
     264        char            uri[256];
     265
     266        dbh = psDBInit("localhost", "test", NULL, "test");
     267        if (!dbh) {
     268            exit(EXIT_FAILURE);
     269        }
     270
     271        if (!newImfilePop(dbh, (char **)&exp_id, (char **)&class, (char **)&class_id, (char **)&uri)) {
    270272            exit(EXIT_FAILURE);
    271273        }
     
    321323        psDB            *dbh;
    322324        char            exp_id[256];
    323         char            class_id[256];
    324         char            uri[256];
    325         char            stats[256];
    326 
    327         dbh = psDBInit("localhost", "test", NULL, "test");
    328         if (!dbh) {
    329             exit(EXIT_FAILURE);
    330         }
    331 
    332         if (!rawImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&stats)) {
     325        char            class[256];
     326        char            class_id[256];
     327        char            uri[256];
     328        char            stats[256];
     329
     330        dbh = psDBInit("localhost", "test", NULL, "test");
     331        if (!dbh) {
     332            exit(EXIT_FAILURE);
     333        }
     334
     335        if (!rawImfilePop(dbh, (char **)&exp_id, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&stats)) {
    333336            exit(EXIT_FAILURE);
    334337        }
Note: See TracChangeset for help on using the changeset viewer.