{
struct Socks5ServerResponseMessage *s_resp;
+ GNUNET_break (0 == s5r->wbuf_len); /* Should happen first in any transmission, right? */
+ GNUNET_assert (SOCKS_BUFFERSIZE - s5r->wbuf_len >=
+ sizeof(struct Socks5ServerResponseMessage));
s_resp = (struct Socks5ServerResponseMessage *) &s5r->wbuf[s5r->wbuf_len];
memset (s_resp, 0, sizeof(struct Socks5ServerResponseMessage));
s_resp->version = SOCKS_VERSION_5;
* @return #GNUNET_SYSERR on error,
* #GNUNET_OK on success
*/
-typedef int (*GNUNET_JSON_Parser) (void *cls,
- json_t *root,
- struct GNUNET_JSON_Specification *spec);
+typedef int
+(*GNUNET_JSON_Parser) (void *cls,
+ json_t *root,
+ struct GNUNET_JSON_Specification *spec);
/**
* @param cls closure
* @param spec our specification entry with data to clean.
*/
-typedef void (*GNUNET_JSON_Cleaner) (void *cls,
- struct GNUNET_JSON_Specification *spec);
+typedef void
+(*GNUNET_JSON_Cleaner) (void *cls,
+ struct GNUNET_JSON_Specification *spec);
/**