/**
* Disconnect from service and then reconnect.
*
- * @param h our handle
+ * @param handle our handle
*/
static void
force_reconnect (struct GNUNET_GNS_Handle *handle)
* @param filename filename of the file containing the search strings.
* @param strings set of strings loaded from file. Caller needs to free this
* if number returned is greater than zero.
+ * @param limit upper limit on the number of strings read from the file
* @return number of strings found in the file. GNUNET_SYSERR on error.
*/
static int
/**
* Function to destroy a peer
*
- * @param the peer structure to destroy
+ * @param peer the peer structure to destroy
*/
static void
destroy_peer (struct Peer *peer)
static int
client_schedule (struct HTTP_Client_Plugin *plugin, int now);
+
static int
client_connect_put (struct Session *s);
+
/**
* Does a session s exists?
*
return GNUNET_NO;
}
+
/**
* Loggging function
*
* @param curl the curl easy handle
* @param type message type
- * @param data data as a not \0-terminated string
+ * @param data data to log, NOT a 0-terminated string
* @param size data length
* @param cls the closure
* @return always 0
*/
static int
-client_log (CURL *curl, curl_infotype type, char *data, size_t size, void *cls)
+client_log (CURL *curl, curl_infotype type,
+ const char *data, size_t size, void *cls)
{
struct ConnectionHandle *ch = cls;
- char *ttype = "UNSPECIFIED";
+ const char *ttype = "UNSPECIFIED";
+
if ((type == CURLINFO_TEXT) || (type == CURLINFO_HEADER_IN) || (type == CURLINFO_HEADER_OUT))
{
char text[size + 2];