diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-19 10:48:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-19 10:48:51 +0000 |
commit | b3e1d0806fb274c62a5acf19c56369b71f992312 (patch) | |
tree | 657a7cd7a327aad0e7598b3d28cecc0d5cd95cd4 /src/testing/gnunet-testing.c | |
parent | 0385dc1043912d3ddc5d57f6b7346054a30f64ef (diff) | |
download | gnunet-b3e1d0806fb274c62a5acf19c56369b71f992312.tar.gz gnunet-b3e1d0806fb274c62a5acf19c56369b71f992312.zip |
-LRN: calculate file size for single files when needed and use GNUNET_DISK_file_size instead of STAT
Diffstat (limited to 'src/testing/gnunet-testing.c')
-rw-r--r-- | src/testing/gnunet-testing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c index 0caa28e25..bdbb5e8c5 100644 --- a/src/testing/gnunet-testing.c +++ b/src/testing/gnunet-testing.c | |||
@@ -170,7 +170,7 @@ create_hostkeys (const unsigned int no) | |||
170 | return 1; | 170 | return 1; |
171 | } | 171 | } |
172 | 172 | ||
173 | if (GNUNET_YES != GNUNET_DISK_file_size (hostkey_src_file, &fs, GNUNET_YES)) | 173 | if (GNUNET_OK != GNUNET_DISK_file_size (hostkey_src_file, &fs, GNUNET_YES, GNUNET_YES)) |
174 | fs = 0; | 174 | fs = 0; |
175 | 175 | ||
176 | if (0 != (fs % HOSTKEYFILESIZE)) | 176 | if (0 != (fs % HOSTKEYFILESIZE)) |