From: Nils Durner Date: Wed, 9 Sep 2009 21:48:59 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~23504 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=850e21e8764a6480c861884e3d326f5eaaa40bbc;p=oweals%2Fgnunet.git fix --- 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))))