IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2006, 3:44:47 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.4

File:
1 edited

Legend:

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

    r8006 r8020  
    221221        psS32           bytes;
    222222        char            md5sum[256];
    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)) {
     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)) {
    233232            exit(EXIT_FAILURE);
    234233        }
     
    260259        psDB            *dbh;
    261260        char            exp_id[256];
    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)) {
     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)) {
    272270            exit(EXIT_FAILURE);
    273271        }
Note: See TracChangeset for help on using the changeset viewer.