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;
}
/**
* 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)
}
+/**
+ * FIXME
+ *
+ * @param cls FIXME
+ * @param msg FIXME
+ */
static void
handle_address_response (void *cls, const struct GNUNET_MessageHeader *msg)
{
}
+/**
+ * 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)
{
}
+/**
+ * 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)
{
}
+/**
+ * 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)
{