Changeset 35357
- Timestamp:
- Apr 4, 2013, 11:25:35 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pstamptool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pstamptool.c
r35318 r35357 49 49 static bool revertjobMode(pxConfig *config); 50 50 51 # if (1)52 // these are unused functions -- since they are 'static', this raises an warning53 // XXX: They actually are used54 51 static bool addprojectMode(pxConfig *config); 55 52 static bool projectMode(pxConfig *config); … … 63 60 static bool listfileMode(pxConfig *config); 64 61 static bool deletefileMode(pxConfig *config); 65 # endif66 62 67 63 # define MODECASE(caseName, func) \ … … 103 99 MODECASE(PSTAMPTOOL_MODE_STOPDEPENDENTJOB, stopdependentjobMode); 104 100 MODECASE(PSTAMPTOOL_MODE_REVERTJOB, revertjobMode); 105 # if (1)106 101 MODECASE(PSTAMPTOOL_MODE_ADDPROJECT, addprojectMode); 107 102 MODECASE(PSTAMPTOOL_MODE_MODPROJECT, modprojectMode); … … 115 110 MODECASE(PSTAMPTOOL_MODE_LISTFILE, listfileMode); 116 111 MODECASE(PSTAMPTOOL_MODE_DELETEFILE, deletefileMode); 117 # endif 112 118 113 default: 119 114 psAbort("invalid option (this should not happen)"); … … 624 619 if (outdir) { 625 620 psStringAppend(&query, ", outdir = '%s'", outdir); 621 } 622 if (username) { 623 psStringAppend(&query, ", username = '%s'", username); 626 624 } 627 625 if (clearfault) { … … 1243 1241 PXOPT_COPY_STR(config->args, where, "-component", "component", "=="); 1244 1242 1245 // start a transaction e raly so it will contain any row level locks1243 // start a transaction early so it will contain any row level locks 1246 1244 if (!psDBTransaction(config->dbh)) { 1247 1245 psError(PS_ERR_UNKNOWN, false, "database error");
Note:
See TracChangeset
for help on using the changeset viewer.
