From 850e21e8764a6480c861884e3d326f5eaaa40bbc Mon Sep 17 00:00:00 2001 From: Nils Durner Date: Wed, 9 Sep 2009 21:48:59 +0000 Subject: [PATCH] fix --- src/util/crypto_rsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index 19b1f8796..b826ee7dc 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c @@ -600,7 +600,7 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename) GNUNET_assert (ret != NULL); enc = rsa_encode_key (ret); GNUNET_assert (enc != NULL); - GNUNET_assert (ntohs (enc->len) == WRITE (fd, enc, ntohs (enc->len))); + GNUNET_assert (ntohs (enc->len) == GNUNET_DISK_file_write (fd, enc, ntohs (enc->len))); GNUNET_free (enc); #ifndef MINGW @@ -678,7 +678,7 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename) break; } enc = GNUNET_malloc (fs); - GNUNET_assert (fs == READ (fd, enc, fs)); + GNUNET_assert (fs == GNUNET_DISK_file_read (fd, enc, fs)); len = ntohs (enc->len); ret = NULL; if ((len != fs) || (NULL == (ret = rsa_decode_key (enc)))) -- 2.25.1