Browse Source

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 ee05079766.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n3.3
Martin Storsjö 9 years ago
parent
commit
f22363c729
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/tls_openssl.c

+ 2
- 2
libavformat/tls_openssl.c View File

@@ -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)


Loading…
Cancel
Save