Changeset 13580 for trunk/ippTools/src/camtool.c
- Timestamp:
- May 31, 2007, 4:40:05 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/camtool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r12237 r13580 23 23 24 24 #include <stdlib.h> 25 #include <stdint.h> 25 26 #include <inttypes.h> 26 27 … … 434 435 } 435 436 437 psString chip_id = psMetadataLookupStr(&status, config->args, "-chip_id"); 438 if (!status) { 439 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -chip_id"); 440 return false; 441 } 442 if (!chip_id) { 443 psError(PS_ERR_UNKNOWN, true, "-chip_id is required"); 444 return false; 445 } 446 436 447 psString uri = psMetadataLookupStr(&status, config->args, "-uri"); 437 448 if (!status) { … … 520 531 521 532 // default 522 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");533 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 523 534 if (!status) { 524 535 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code"); … … 714 725 715 726 bool status = false; 716 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");727 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 717 728 if (!status) { 718 729 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code"); 730 return false; 731 } 732 if (code == INT16_MAX) { 733 psError(PS_ERR_UNKNOWN, true, "-code is required"); 719 734 return false; 720 735 }
Note:
See TracChangeset
for help on using the changeset viewer.
