aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-07 07:58:07 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-07 07:58:07 +0000
commit55891cb44a62c8170f806901a12490f634d5165e (patch)
tree4baf4eca38873a1997aaaebd852817461fbba1e9 /url.c
parent[w3m-dev 02640] (diff)
downloadw3m-55891cb44a62c8170f806901a12490f634d5165e.tar.gz
w3m-55891cb44a62c8170f806901a12490f634d5165e.zip
run "make indent"
Diffstat (limited to 'url.c')
-rw-r--r--url.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/url.c b/url.c
index 5649b86..5c02fc2 100644
--- a/url.c
+++ b/url.c
@@ -1,4 +1,4 @@
-/* $Id: url.c,v 1.21 2001/12/06 22:45:06 ukai Exp $ */
+/* $Id: url.c,v 1.22 2001/12/07 07:58:07 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -464,8 +464,7 @@ openSocket(char *const hostname,
#ifdef INET6
/* rfc2732 compliance */
hname = hostname;
- if (hname != NULL && hname[0] == '[' &&
- hname[strlen(hname) - 1] == ']') {
+ if (hname != NULL && hname[0] == '[' && hname[strlen(hname) - 1] == ']') {
hname = allocStr(hostname + 1, -1);
hname[strlen(hname) - 1] = '\0';
if (strspn(hname, "0123456789abcdefABCDEF:.") != strlen(hname))