aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-21 09:31:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-21 09:31:55 +0000
commit3e5ba33e2dcf2fe5959ee63e46944d2b2e2f1aa5 (patch)
treeb9a56c39f76e6eee5c6440b47399ff00115792f0 /lib
parent9a9013ac25206b98d67efa1d833c7aecd541c1ef (diff)
removed two unused variables and added an extra set of parentheses, done
to remove pedantic compiler warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index f212bb5d0..d4db4428e 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1160,7 +1160,7 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
return CURLE_URL_MALFORMAT_USER;
}
#endif
- if(ptr=strchr(conn->name, '@')) {
+ if((ptr=strchr(conn->name, '@'))) {
/* there's a user+password given here, to the left of the @ */
data->user[0] =0;
@@ -1310,12 +1310,10 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
#endif
if (data->device && (strlen(data->device)<255)) {
- struct ifreq ifr;
struct sockaddr_in sa;
struct hostent *h=NULL;
char *hostdataptr;
size_t size;
- unsigned short porttouse;
char myhost[256] = "";
unsigned long in;