From c53e7613c91905a240eb8e9863c60637ed926f49 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 13 May 2012 17:40:18 +0900 Subject: [PATCH] Renamed index in spdylay_get_credential_cert prototype to idx This is because compiler may warn that name `index` shadows global declaration if the application code uses the prototype argument names as is. --- lib/includes/spdylay/spdylay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/includes/spdylay/spdylay.h b/lib/includes/spdylay/spdylay.h index d7efb905..fe7f7fa3 100644 --- a/lib/includes/spdylay/spdylay.h +++ b/lib/includes/spdylay/spdylay.h @@ -1077,7 +1077,7 @@ typedef ssize_t (*spdylay_get_credential_ncerts) * @functypedef * * Callback function invoked when the library needs the client - * certificate for the given |origin|. The |index| is the index of the + * certificate for the given |origin|. The |idx| is the index of the * certificate chain and 0 means the leaf certificate of the chain. * If called with |certlen| == 0, the implementation of this function * must return the length of the certificate in bytes. If called with @@ -1085,7 +1085,7 @@ typedef ssize_t (*spdylay_get_credential_ncerts) * bytes and return 0. */ typedef ssize_t (*spdylay_get_credential_cert) -(spdylay_session *session, const spdylay_origin *origin, size_t index, +(spdylay_session *session, const spdylay_origin *origin, size_t idx, uint8_t *cert, size_t certlen, void *user_data); /**