1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

removed two unused variables and added an extra set of parentheses, done

to remove pedantic compiler warnings
This commit is contained in:
Daniel Stenberg 2000-11-21 09:31:55 +00:00
parent 9a9013ac25
commit 3e5ba33e2d

View File

@ -1160,7 +1160,7 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
return CURLE_URL_MALFORMAT_USER; return CURLE_URL_MALFORMAT_USER;
} }
#endif #endif
if(ptr=strchr(conn->name, '@')) { if((ptr=strchr(conn->name, '@'))) {
/* there's a user+password given here, to the left of the @ */ /* there's a user+password given here, to the left of the @ */
data->user[0] =0; data->user[0] =0;
@ -1310,12 +1310,10 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
#endif #endif
if (data->device && (strlen(data->device)<255)) { if (data->device && (strlen(data->device)<255)) {
struct ifreq ifr;
struct sockaddr_in sa; struct sockaddr_in sa;
struct hostent *h=NULL; struct hostent *h=NULL;
char *hostdataptr; char *hostdataptr;
size_t size; size_t size;
unsigned short porttouse;
char myhost[256] = ""; char myhost[256] = "";
unsigned long in; unsigned long in;