[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9115 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9115 - gnunet/src/util |
Date: |
Mon, 5 Oct 2009 04:20:34 -0600 |
Author: grothoff
Date: 2009-10-05 04:20:33 -0600 (Mon, 05 Oct 2009)
New Revision: 9115
Modified:
gnunet/src/util/crypto_rsa.c
gnunet/src/util/resolver_api.c
Log:
fix
Modified: gnunet/src/util/crypto_rsa.c
===================================================================
--- gnunet/src/util/crypto_rsa.c 2009-10-05 10:05:21 UTC (rev 9114)
+++ gnunet/src/util/crypto_rsa.c 2009-10-05 10:20:33 UTC (rev 9115)
@@ -642,12 +642,12 @@
if (GNUNET_YES != GNUNET_DISK_file_test (filename))
{
/* eh, what!? File we opened is now gone!? */
- GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
"stat", filename);
if (GNUNET_YES != GNUNET_DISK_file_unlock (fd, 0, sizeof (struct
RsaPrivateKeyBinaryEncoded)))
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
"fcntl", filename);
- GNUNET_assert (0 == GNUNET_DISK_file_close (fd));
+ GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd));
return NULL;
}
Modified: gnunet/src/util/resolver_api.c
===================================================================
--- gnunet/src/util/resolver_api.c 2009-10-05 10:05:21 UTC (rev 9114)
+++ gnunet/src/util/resolver_api.c 2009-10-05 10:20:33 UTC (rev 9115)
@@ -124,6 +124,10 @@
/**
* Convert IP address to string without DNS resolution.
+ *
+ * @param sa the address
+ * @param salen number of bytes in sa
+ * @return address as a string, NULL on error
*/
static char *
no_resolve (const struct sockaddr *sa, socklen_t salen)
@@ -160,6 +164,12 @@
}
+/**
+ * FIXME
+ *
+ * @param cls FIXME
+ * @param msg FIXME
+ */
static void
handle_address_response (void *cls, const struct GNUNET_MessageHeader *msg)
{
@@ -224,6 +234,14 @@
}
+/**
+ * FIXME
+ *
+ * @param cls FIXME
+ * @param size number of bytes available in buf
+ * @param buf target buffer, NULL on error
+ * @return number of bytes written to buf
+ */
static size_t
transmit_get_ip (void *cls, size_t size, void *buf)
{
@@ -396,16 +414,45 @@
}
+/**
+ * FIXME.
+ */
struct GetHostnameContext
{
+
+ /**
+ * FIXME.
+ */
GNUNET_RESOLVER_HostnameCallback callback;
+
+ /**
+ * FIXME.
+ */
void *cls;
+
+ /**
+ * FIXME.
+ */
struct GNUNET_RESOLVER_GetMessage *msg;
+
+ /**
+ * FIXME.
+ */
struct GNUNET_CLIENT_Connection *client;
+
+ /**
+ * FIXME.
+ */
struct GNUNET_TIME_Absolute timeout;
};
+/**
+ * FIXME.
+ *
+ * @param cls FIXME
+ * @param msg FIXME
+ */
static void
handle_hostname_response (void *cls, const struct GNUNET_MessageHeader *msg)
{
@@ -455,6 +502,14 @@
}
+/**
+ * FIXME
+ *
+ * @param cls FIXME
+ * @param size number of bytes available in buf
+ * @param buf target buffer, NULL on error
+ * @return number of bytes written to buf
+ */
static size_t
transmit_get_hostname (void *cls, size_t size, void *buf)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9115 - gnunet/src/util,
gnunet <=