Commit f22363c7 authored by Martin Storsjö's avatar Martin Storsjö

openssl: Avoid double semicolons after the GET_BIO_DATA macro

When the macro is expanded with a semicolon following it and the
macro itself contains a semicolon, we ended up in double semicolons,
which is treated as a statement that disallows further declarations.

This avoids errors about mixed declarations and statements on gcc,
after ee050797.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 052b9785
......@@ -152,9 +152,9 @@ static int url_bio_destroy(BIO *b)
}
#if OPENSSL_VERSION_NUMBER >= 0x1010000fL
#define GET_BIO_DATA(x) BIO_get_data(x);
#define GET_BIO_DATA(x) BIO_get_data(x)
#else
#define GET_BIO_DATA(x) (x)->ptr;
#define GET_BIO_DATA(x) (x)->ptr
#endif
static int url_bio_bread(BIO *b, char *buf, int len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment