From 3a1ed42149c48c2dfdca86e0c730c1fa91f11324 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 20 Apr 2015 13:19:02 -0700 Subject: add missing line continuation to LIST_INSERT_HEAD macro, and fix stale code comment --- src/openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 77cec55..5331501 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -111,7 +111,7 @@ LIST_NEXT((elm), field)->field.le_prev = (elm)->field.le_prev; \ *(elm)->field.le_prev = LIST_NEXT((elm), field); \ } while (0) -#define LIST_INSERT_HEAD(head, elm, field) do { +#define LIST_INSERT_HEAD(head, elm, field) do { \ if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \ LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field); \ LIST_FIRST((head)) = (elm); \ @@ -5150,7 +5150,7 @@ static int sx_setAlpnSelect_cb(SSL *ssl, const unsigned char **out, unsigned cha *out = NULL; *outlen = 0; - /* always expect function (1st) and return string buffer (Nth) */ + /* expect at least two values: return buffer and closure */ if ((n = ex_getdata(&L, EX_SSL_CTX_ALPN_SELECT_CB, ctx)) < 2) return SSL_TLSEXT_ERR_ALERT_FATAL; -- cgit v1.2.3-59-g8ed1b