commit 7ee33f6f78ec8f7610478723306ff47d1ff963e7
parent b40f73fb28daa9f4a654cfc582f4336315c4767d
Author: ukai <ukai>
Date: Fri, 7 Dec 2001 07:58:07 +0000
run "make indent"
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/linein.c b/linein.c
@@ -682,7 +682,7 @@ next_compl(int next)
else {
for (b = CPos - 1; b >= 0; b--) {
if ((strBuf->ptr[b] == ' ' || strBuf->ptr[b] == CTRL_I) &&
- !((b > 0) && strBuf->ptr[b-1] == '\\'))
+ !((b > 0) && strBuf->ptr[b - 1] == '\\'))
break;
}
b++;
@@ -888,7 +888,7 @@ unescape_spaces(Str s)
if (s == NULL)
return s;
for (p = s->ptr; *p; p++) {
- if (*p == '\\' && (*(p+1) == ' ' || *(p+1) == CTRL_I)) {
+ if (*p == '\\' && (*(p + 1) == ' ' || *(p + 1) == CTRL_I)) {
if (tmp == NULL)
tmp = Strnew_charp_n(s->ptr, (int)(p - s->ptr));
}
diff --git a/url.c b/url.c
@@ -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))