SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
32
math/dieharder/patches/patch-libdieharder_rng_file_input_c
Normal file
32
math/dieharder/patches/patch-libdieharder_rng_file_input_c
Normal file
|
@ -0,0 +1,32 @@
|
|||
Fix format strings.
|
||||
|
||||
Index: libdieharder/rng_file_input.c
|
||||
--- libdieharder/rng_file_input.c.orig
|
||||
+++ libdieharder/rng_file_input.c
|
||||
@@ -162,7 +162,7 @@ static unsigned long int file_input_get (void *vstate)
|
||||
state->rptr++;
|
||||
state->rtot++;
|
||||
if(verbose){
|
||||
- fprintf(stdout,"# file_input() %lu: %lu/%lu -> %u\n", state->rtot, state->rptr,state->flen,(uint)iret);
|
||||
+ fprintf(stdout,"# file_input() %lld: %lld/%lld -> %u\n", state->rtot, state->rptr,state->flen,(uint)iret);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -270,7 +270,7 @@ static void file_input_set (void *vstate, unsigned lon
|
||||
state->rewind_cnt++;
|
||||
if(verbose == D_FILE_INPUT || verbose == D_ALL){
|
||||
fprintf(stderr,"# file_input(): Rewinding %s at rtot = %u\n", filename,(uint) state->rtot);
|
||||
- fprintf(stderr,"# file_input(): Rewind count = %u, resetting rptr = %lu\n",state->rewind_cnt,state->rptr);
|
||||
+ fprintf(stderr,"# file_input(): Rewind count = %u, resetting rptr = %lld\n",state->rewind_cnt,state->rptr);
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
@@ -322,7 +322,7 @@ static void file_input_set (void *vstate, unsigned lon
|
||||
cnt++;
|
||||
if(verbose){
|
||||
fprintf(stdout,"# file_input(): cnt = %d\n",cnt);
|
||||
- fprintf(stdout,"# file_input(): state->flen set to %lu\n",state->flen);
|
||||
+ fprintf(stdout,"# file_input(): state->flen set to %lld\n",state->flen);
|
||||
}
|
||||
}
|
||||
if(strncmp(splitbuf[0],"numbit",6) == 0){
|
Loading…
Add table
Add a link
Reference in a new issue