Changeset 28106 for trunk/ippTools/src/pstamptool.c
- Timestamp:
- May 26, 2010, 9:12:02 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pstamptool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pstamptool.c
r27969 r28106 53 53 static bool updatedependentMode(pxConfig *config); 54 54 static bool revertdependentMode(pxConfig *config); 55 static bool getwebrequestnumMode(pxConfig *config); 55 56 56 57 # define MODECASE(caseName, func) \ … … 95 96 MODECASE(PSTAMPTOOL_MODE_UPDATEDEPENDENT, updatedependentMode); 96 97 MODECASE(PSTAMPTOOL_MODE_REVERTDEPENDENT, revertdependentMode); 98 MODECASE(PSTAMPTOOL_MODE_GETWEBREQUESTNUM, getwebrequestnumMode); 97 99 default: 98 100 psAbort("invalid option (this should not happen)"); … … 1334 1336 return true; 1335 1337 } 1338 1339 static bool getwebrequestnumMode(pxConfig *config) 1340 { 1341 PS_ASSERT_PTR_NON_NULL(config, false); 1342 1343 if (!pstampWebRequestInsert(config->dbh, 0 )) { 1344 psError(PS_ERR_UNKNOWN, false, "failed to insert pstampWebRequest"); 1345 return false; 1346 } 1347 1348 psS64 req_id = psDBLastInsertID(config->dbh); 1349 1350 printf("%" PRId64 "\n", req_id); 1351 1352 return true; 1353 }
Note:
See TracChangeset
for help on using the changeset viewer.
