IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2006, 5:20:04 PM (20 years ago)
Author:
Paul Price
Message:

Adding string.h where required

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src

    • Property svn:ignore
      •  

        old new  
        1010*.lo
        1111p0tool
        12 p1search
        13 p2search
         12p1tool
         13p2tool
        1414pxadmin
        1515pzgetexp
        1616pzgetimfiles
        17 pzsearch
         17pztool
        1818dettool
        1919pxinject
  • trunk/ippTools/src/pztool.c

    r8536 r8849  
    33#endif
    44
     5#include <stdio.h>
     6#include <string.h>
    57#include <stdlib.h>
    68
     
    5961    psArray *summit = summitExpSelectRowObjects(config->dbh,
    6062        config->where, MAX_ROWS);
    61     if (!summit) { 
     63    if (!summit) {
    6264        psError(PS_ERR_UNKNOWN, false, "no summitExp rows found"); \
    63         return false; 
    64     } 
     65        return false;
     66    }
    6567
    6668    psArray *new = newExpSelectRowObjects(config->dbh,
    6769        config->where, MAX_ROWS);
    68     if (!new) { 
     70    if (!new) {
    6971        psError(PS_ERR_UNKNOWN, false, "no newExp rows found"); \
    70     } 
     72    }
    7173
    7274    if (new) {
     
    138140
    139141        if (!newImfileInsert(
    140             config->dbh, 
     142            config->dbh,
    141143            pendingImfile->exp_id,
    142144            pendingImfile->class,
     
    147149            psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    148150            psFree(pending);
    149             goto ROLLBACK; 
     151            goto ROLLBACK;
    150152        }
    151153    }
     
    154156        psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    155157        psFree(pending);
    156         goto ROLLBACK; 
     158        goto ROLLBACK;
    157159    }
    158160    psFree(pending);
     
    161163    if (!pztoolFlushPendingExp(config)) {
    162164        psError(PS_ERR_UNKNOWN, false, "pztoolFlushPendingExp() failed");
    163         goto ROLLBACK; 
    164     }
    165 
    166     // point of no return 
     165        goto ROLLBACK;
     166    }
     167
     168    // point of no return
    167169    if (!psDBCommit(config->dbh)) {
    168170        psError(PS_ERR_UNKNOWN, false, "database error");
    169171        // XXX is this the right thing to do after a commit failure?
    170         goto ROLLBACK; 
     172        goto ROLLBACK;
    171173    }
    172174
Note: See TracChangeset for help on using the changeset viewer.