]> git.sesse.net Git - vlc/commitdiff
gnutls: remove tautology / dead code
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Sep 2014 14:19:12 +0000 (17:19 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Sep 2014 14:19:12 +0000 (17:19 +0300)
modules/misc/gnutls.c

index c77536cd266d03bd7ece10f16daee20ca750a8fa..7f40125fa3e8579a22800501143a2f2b1551f1b4 100644 (file)
@@ -200,7 +200,6 @@ static int gnutls_SessionOpen (vlc_tls_t *tls, int type,
 
     if (alpn != NULL)
     {
-#ifdef GNUTLS_ALPN_MAND
         gnutls_datum_t *protv = NULL;
         unsigned protc = 0;
 
@@ -222,9 +221,6 @@ static int gnutls_SessionOpen (vlc_tls_t *tls, int type,
 
         val = gnutls_alpn_set_protocols (session, protv, protc, 0);
         free (protv);
-#else
-        goto error;
-#endif
     }
 
     gnutls_transport_set_int (session, fd);
@@ -281,7 +277,6 @@ static int gnutls_ContinueHandshake (vlc_tls_t *tls, char **restrict alp)
 done:
     if (alp != NULL)
     {
-#ifdef GNUTLS_ALPN_MAND
         gnutls_datum_t datum;
 
         val = gnutls_alpn_get_selected_protocol (session, &datum);
@@ -295,7 +290,6 @@ done:
                 return -1;
         }
         else
-#endif
             *alp = NULL;
     }
     return 0;