comparison src/getidblock.c @ 59:7d5c637aaafb

General cleanup and code fixes. Use autoscan to cleanup our autoconf system. Use autoconf to detect when we need to use our XGetopt files and other header files. Decode BCC field. Fix missing LE32_CPU byte swapping for FILETIME types.
author Carl Byington <carl@five-ten-sg.com>
date Thu, 14 Feb 2008 14:55:32 -0800
parents 034641c26ab9
children 3cb02cb1e6cd
comparison
equal deleted inserted replaced
58:a8b772313ff4 59:7d5c637aaafb
59 sid = argv[optind+1]; 59 sid = argv[optind+1];
60 id = (unsigned int)strtol(sid, NULL, 0); 60 id = (unsigned int)strtol(sid, NULL, 0);
61 61
62 DEBUG_MAIN(("Opening file\n")); 62 DEBUG_MAIN(("Opening file\n"));
63 memset(&pstfile, 0, sizeof(pstfile)); 63 memset(&pstfile, 0, sizeof(pstfile));
64 if (pst_open(&pstfile, fname, "r")!=0) { 64 if (pst_open(&pstfile, fname)) {
65 DIE(("Error opening file\n")); 65 DIE(("Error opening file\n"));
66 } 66 }
67 67
68 DEBUG_MAIN(("Loading Index\n")); 68 DEBUG_MAIN(("Loading Index\n"));
69 if (pst_load_index(&pstfile) != 0) { 69 if (pst_load_index(&pstfile) != 0) {