]> git.sesse.net Git - vlc/blobdiff - src/misc/httpd.c
Fix my email address
[vlc] / src / misc / httpd.c
index 815bd4ae4c8fdc3376f57c0f94b9177805488005..3a45f810a0d120ca75b17ce2b8daeaf2dd2ef537 100644 (file)
@@ -5,7 +5,7 @@
  * $Id$
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
- *          Remi Denis-Courmont <courmisch@via.ecp.fr>
+ *          Remi Denis-Courmont <rem # videolan.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -931,7 +931,7 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, char *psz_host,
         vlc_value_t val;
         char psz_port[6];
         struct addrinfo hints;
-        int res;
+        int check;
 
         memset( &hints, 0, sizeof( hints ) );
 
@@ -955,12 +955,12 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, char *psz_host,
         snprintf( psz_port, sizeof( psz_port ), "%d", i_port );
         psz_port[sizeof( psz_port ) - 1] = '\0';
         
-        res = getaddrinfo( psz_host, psz_port, &hints, &res );
-        if( res != 0 )
+        check = getaddrinfo( psz_host, psz_port, &hints, &res );
+        if( check != 0 )
         {
 #ifdef HAVE_GAI_STRERROR
             msg_Err( p_this, "cannot resolve %s:%d : %s", psz_host, i_port,
-                     gai_strerror( res ) );
+                     gai_strerror( check ) );
 #else
             msg_Err( p_this, "cannot resolve %s:%d", psz_host, i_port );
 #endif