IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2012, 6:52:56 AM (14 years ago)
Author:
eugene
Message:

changes to satisfy more pedantic gcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/ippTools/src/pstamptool.c

    r34051 r34052  
    10461046    // it's an allowed arg because add_poll_args adds it
    10471047    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
    1048     if (limit) { /* do something?? */
     1048    if (limit) { /* do something?? */ }
    10491049
    10501050    PXOPT_LOOKUP_S16(fault, config->args, "-fault",  false, false);
     
    10551055    psString faultClause = psStringCopy("");
    10561056    if (!fault) {
    1057         psStringAppend(&faultClause, " \nAND (pstampJob.fault < %d)", PSTAMP_FIRST_ERROR_CODE);
     1057        psStringAppend(&faultClause, " \nAND (pstampJob.fault < %d)", PSTAMP_FIRST_ERROR_CODE);
    10581058    }
    10591059
    10601060    psString query = pxDataGet("pstamptool_revertjob.sql");
    10611061    if (!psListLength(where->list) && !all) {
    1062         psFree(where);
    1063         psError(PXTOOLS_ERR_CONFIG, false, "search parameters or -all are required");
    1064         return false;
     1062        psFree(where);
     1063        psError(PXTOOLS_ERR_CONFIG, false, "search parameters or -all are required");
     1064        return false;
    10651065    }
    10661066    if (psListLength(where->list)) {
    1067         psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    1068         psStringAppend(&query, " AND %s", whereClause);
    1069         psFree(whereClause);
     1067        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
     1068        psStringAppend(&query, " AND %s", whereClause);
     1069        psFree(whereClause);
    10701070    }
    10711071    psFree(where);
     
    10751075    psString faultCountClause = NULL;
    10761076    if (clear_fault_count) {
    1077         psStringAppend(&faultCountClause, "\n, pstampJob.fault_count = 0");
     1077        psStringAppend(&faultCountClause, "\n, pstampJob.fault_count = 0");
    10781078    } else {
    1079         psStringAppend(&query, " AND pstampJob.fault_count < %d", PSTAMP_MAX_JOB_FAULTS);
     1079        psStringAppend(&query, " AND pstampJob.fault_count < %d", PSTAMP_MAX_JOB_FAULTS);
    10801080    }
    10811081
    10821082    if (!p_psDBRunQueryF(config->dbh, query, faultCountClause, faultClause)) {
    1083         psFree(faultCountClause);
    1084         psFree(faultClause);
    1085         psFree(query);
    1086         psError(PS_ERR_UNKNOWN, false, "database error");
    1087         return false;
     1083        psFree(faultCountClause);
     1084        psFree(faultClause);
     1085        psFree(query);
     1086        psError(PS_ERR_UNKNOWN, false, "database error");
     1087        return false;
    10881088    }
    10891089
     
    10941094    return true;
    10951095}
     1096
    10961097static bool addprojectMode(pxConfig *config)
    10971098{
     
    11071108
    11081109    if (!pstampProjectInsert(config->dbh,
    1109             0,
    1110             name,
    1111             state,
    1112             imagedb,
    1113             dvodb,
    1114             camera,
    1115             telescope,
    1116             need_magic
    1117         )) {
     1110                             0,
     1111                             name,
     1112                             state,
     1113                             imagedb,
     1114                             dvodb,
     1115                             camera,
     1116                             telescope,
     1117                             need_magic
     1118            )) {
    11181119        psError(PS_ERR_UNKNOWN, false, "database error");
    11191120        return false;
Note: See TracChangeset for help on using the changeset viewer.