- using unsigned long long for constant max value of puk

- fixed fixup_la
- guessing building machine


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@634 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-11-07 21:55:37 +00:00
parent df23b98c27
commit 27a3385f36
3 changed files with 14 additions and 14 deletions

View File

@@ -343,8 +343,8 @@ main (int argc, char **argv)
if (dobreak) {
/* The biggest buffer sprintf could write with "%llu" */
char secretbuf[strlen("18446744073709551615")+1];
uint64_t secret = 0;
uint64_t maxsecret = 0;
unsigned long long secret = 0;
unsigned long long maxsecret = 0;
if (usepin) {
pace_input.pin_id = PACE_PIN;
@@ -383,7 +383,7 @@ main (int argc, char **argv)
} else if (usepuk) {
pace_input.pin_id = PACE_PUK;
pace_input.pin_length = 10;
maxsecret = 9999999999;
maxsecret = 9999999999LLU;
if (puk) {
if (sscanf(puk, "%llu", &secret) != 1) {
fprintf(stderr, "%s is not an unsigned long long.\n",