aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_test_lib.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-19 09:30:28 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-19 09:30:28 +0000
commit5ecf0c3e1df10fdce2dbae9efc75d59a13aefb58 (patch)
tree63ad4252f15962bcc95cca5380d681a55c38680a /src/fs/fs_test_lib.c
parent0ef092ad9150a7424d2fe48abc35579eb3608b4b (diff)
downloadgnunet-5ecf0c3e1df10fdce2dbae9efc75d59a13aefb58.tar.gz
gnunet-5ecf0c3e1df10fdce2dbae9efc75d59a13aefb58.zip
stats
Diffstat (limited to 'src/fs/fs_test_lib.c')
-rw-r--r--src/fs/fs_test_lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c
index 2f40b52bc..b0776e736 100644
--- a/src/fs/fs_test_lib.c
+++ b/src/fs/fs_test_lib.c
@@ -581,7 +581,9 @@ file_generator (void *cls,
581 uint8_t *cbuf = buf; 581 uint8_t *cbuf = buf;
582 int mod; 582 int mod;
583 583
584 for (pos=0;pos<max;pos++) 584 for (pos=0;pos<8;pos++)
585 cbuf[pos] = (uint8_t) (offset >> pos*8);
586 for (pos=8;pos<max;pos++)
585 { 587 {
586 mod = (255 - (offset / 1024 / 32)); 588 mod = (255 - (offset / 1024 / 32));
587 if (mod == 0) 589 if (mod == 0)