diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-19 22:28:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-19 22:28:37 +0000 |
commit | 09cfcd83bd680bd5178c7fead1c6927fcf45b352 (patch) | |
tree | 2e96207c413407d1a487035c9136807b1ffa5b37 /src/include/gnunet_bio_lib.h | |
parent | 8da07c23a94221fea5d73ebac9a522f72e3adef3 (diff) | |
download | gnunet-09cfcd83bd680bd5178c7fead1c6927fcf45b352.tar.gz gnunet-09cfcd83bd680bd5178c7fead1c6927fcf45b352.zip |
fixing bio bugs
Diffstat (limited to 'src/include/gnunet_bio_lib.h')
-rw-r--r-- | src/include/gnunet_bio_lib.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/gnunet_bio_lib.h b/src/include/gnunet_bio_lib.h index 2a2639f05..f70baa070 100644 --- a/src/include/gnunet_bio_lib.h +++ b/src/include/gnunet_bio_lib.h | |||
@@ -113,7 +113,7 @@ int GNUNET_BIO_read_meta_data (struct GNUNET_BIO_ReadHandle *h, | |||
113 | * @param h hande to open file | 113 | * @param h hande to open file |
114 | * @param f address of float to read | 114 | * @param f address of float to read |
115 | */ | 115 | */ |
116 | #define GNUNET_BIO_read_float(h, f) (sizeof(float) == GNUNET_BIO_read (h, __FILE__ "##__LINE__##", f, sizeof(float))) | 116 | #define GNUNET_BIO_read_float(h, f) (GNUNET_BIO_read (h, __FILE__ "##__LINE__##", f, sizeof(float))) |
117 | 117 | ||
118 | 118 | ||
119 | 119 | ||
@@ -123,7 +123,7 @@ int GNUNET_BIO_read_meta_data (struct GNUNET_BIO_ReadHandle *h, | |||
123 | * @param h hande to open file | 123 | * @param h hande to open file |
124 | * @param f address of double to read | 124 | * @param f address of double to read |
125 | */ | 125 | */ |
126 | #define GNUNET_BIO_read_double(h, f) (sizeof(double) == GNUNET_BIO_read (h, __FILE__ "##__LINE__##", f, sizeof(double))) | 126 | #define GNUNET_BIO_read_double(h, f) (GNUNET_BIO_read (h, __FILE__ "##__LINE__##", f, sizeof(double))) |
127 | 127 | ||
128 | 128 | ||
129 | /** | 129 | /** |
@@ -167,7 +167,7 @@ int GNUNET_BIO_read_int64__ (struct GNUNET_BIO_ReadHandle *h, | |||
167 | * @param h hande to open file | 167 | * @param h hande to open file |
168 | * @param i address of 64-bit integer to read | 168 | * @param i address of 64-bit integer to read |
169 | */ | 169 | */ |
170 | #define GNUNET_BIO_read_int64(h, i) (sizeof(int64_t) == GNUNET_BIO_read (h, __FILE__ "##__LINE__##", (int64_t*) i, sizeof(int64_t))) | 170 | #define GNUNET_BIO_read_int64(h, i) GNUNET_BIO_read_int64__ (h, __FILE__ "##__LINE__##", (int64_t*) i) |
171 | 171 | ||
172 | 172 | ||
173 | /** | 173 | /** |
@@ -236,7 +236,7 @@ int GNUNET_BIO_write_meta_data (struct GNUNET_BIO_WriteHandle *h, | |||
236 | * @param h hande to open file | 236 | * @param h hande to open file |
237 | * @param f float to write (must be a variable) | 237 | * @param f float to write (must be a variable) |
238 | */ | 238 | */ |
239 | #define GNUNET_BIO_write_float(h, f) (sizeof(float) == GNUNET_BIO_write (h, &f, sizeof(float))) | 239 | #define GNUNET_BIO_write_float(h, f) GNUNET_BIO_write (h, &f, sizeof(float)) |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
@@ -246,7 +246,7 @@ int GNUNET_BIO_write_meta_data (struct GNUNET_BIO_WriteHandle *h, | |||
246 | * @param h hande to open file | 246 | * @param h hande to open file |
247 | * @param f double to write (must be a variable) | 247 | * @param f double to write (must be a variable) |
248 | */ | 248 | */ |
249 | #define GNUNET_BIO_write_double(h, f) (sizeof(double) == GNUNET_BIO_write (h, &f, sizeof(double))) | 249 | #define GNUNET_BIO_write_double(h, f) GNUNET_BIO_write (h, &f, sizeof(double)) |
250 | 250 | ||
251 | 251 | ||
252 | /** | 252 | /** |