summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
commita14d555c873398b14776ca4f2c33f9c69617afb9 (patch)
tree350f6f98843363254f9afe467ae0c92d5a9d7f43 /usr.bin/ftp
parentf3a2b348daf9fa6063c38d2d69563f732a2f80e7 (diff)
downloadFreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.zip
FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/cmds.c22
-rw-r--r--usr.bin/ftp/ftp.c10
-rw-r--r--usr.bin/ftp/main.c4
-rw-r--r--usr.bin/ftp/ruserpass.c4
4 files changed, 20 insertions, 20 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index 86740f2..34cca4c 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -194,7 +194,7 @@ setpeer(argc, argv)
unix_proxy = 0;
else
unix_server = 0;
- if (overbose &&
+ if (overbose &&
!strncmp(reply_string, "215 TOPS20", 10))
printf(
"Remember to set tenex mode when transfering binary files from this machine.\n");
@@ -663,15 +663,15 @@ usage:
tm->tm_mon++;
if (tm->tm_year > yy%100)
return (1);
- if ((tm->tm_year == yy%100 &&
+ if ((tm->tm_year == yy%100 &&
tm->tm_mon > mo) ||
- (tm->tm_mon == mo &&
+ (tm->tm_mon == mo &&
tm->tm_mday > day) ||
- (tm->tm_mday == day &&
+ (tm->tm_mday == day &&
tm->tm_hour > hour) ||
- (tm->tm_hour == hour &&
+ (tm->tm_hour == hour &&
tm->tm_min > min) ||
- (tm->tm_min == min &&
+ (tm->tm_min == min &&
tm->tm_sec > sec))
return (1);
} else {
@@ -862,7 +862,7 @@ status(argc, argv)
}
printf("Mode: %s; Type: %s; Form: %s; Structure: %s\n",
modename, typename, formname, structname);
- printf("Verbose: %s; Bell: %s; Prompting: %s; Globbing: %s\n",
+ printf("Verbose: %s; Bell: %s; Prompting: %s; Globbing: %s\n",
onoff(verbose), onoff(bell), onoff(interactive),
onoff(doglob));
printf("Store unique: %s; Receive unique: %s\n", onoff(sunique),
@@ -995,7 +995,7 @@ setglob(argc, argv)
int argc;
char *argv[];
{
-
+
doglob = !doglob;
printf("Globbing %s.\n", onoff(doglob));
code = doglob;
@@ -1261,7 +1261,7 @@ shell(argc, argv)
{
pid_t pid;
sig_t old1, old2;
- char shellnam[40], *shell, *namep;
+ char shellnam[40], *shell, *namep;
union wait status;
old1 = signal (SIGINT, SIG_IGN);
@@ -1901,7 +1901,7 @@ domap(name)
break;
case '[':
LOOP:
- if (*++cp2 == '$' && isdigit(*(cp2+1))) {
+ if (*++cp2 == '$' && isdigit(*(cp2+1))) {
if (*++cp2 == '0') {
char *cp3 = name;
@@ -1920,7 +1920,7 @@ LOOP:
}
}
else {
- while (*cp2 && *cp2 != ',' &&
+ while (*cp2 && *cp2 != ',' &&
*cp2 != ']') {
if (*cp2 == '\\') {
cp2++;
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c
index 5ac4cf1..10327c5 100644
--- a/usr.bin/ftp/ftp.c
+++ b/usr.bin/ftp/ftp.c
@@ -279,7 +279,7 @@ va_dcl
fmt = va_arg(ap, char *);
if (strncmp("PASS ", fmt, 5) == 0)
printf("PASS XXXX");
- else
+ else
vfprintf(stdout, fmt, ap);
va_end(ap);
printf("\n");
@@ -605,7 +605,7 @@ sendrequest(cmd, local, remote, printnames)
if (c < 0)
warn("local: %s", local);
if (d < 0) {
- if (errno != EPIPE)
+ if (errno != EPIPE)
warn("netout");
bytes = -1;
}
@@ -629,7 +629,7 @@ sendrequest(cmd, local, remote, printnames)
/* if (c == '\r') { */
/* (void) putc('\0', dout); // this violates rfc */
/* bytes++; */
- /* } */
+ /* } */
}
if (hash) {
if (bytes < hashbytes)
@@ -1053,7 +1053,7 @@ initconn()
noport:
data_addr = myctladdr;
if (sendport)
- data_addr.sin_port = 0; /* let system pick one */
+ data_addr.sin_port = 0; /* let system pick one */
if (data != -1)
(void) close(data);
data = socket(AF_INET, SOCK_STREAM, 0);
@@ -1499,7 +1499,7 @@ abort_remote(din)
(void) fflush(cout);
FD_ZERO(&mask);
FD_SET(fileno(cin), &mask);
- if (din) {
+ if (din) {
FD_SET(fileno(din), &mask);
}
if ((nfnd = empty(&mask, 10)) <= 0) {
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 98bc4d1..7df165c 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -94,7 +94,7 @@ main(argc, argv)
options |= SO_DEBUG;
debug++;
break;
-
+
case 'g':
doglob = 0;
break;
@@ -217,7 +217,7 @@ tail(filename)
char *filename;
{
char *s;
-
+
while (*filename) {
s = strrchr(filename, '/');
if (s == NULL)
diff --git a/usr.bin/ftp/ruserpass.c b/usr.bin/ftp/ruserpass.c
index d5d69fb..026773c 100644
--- a/usr.bin/ftp/ruserpass.c
+++ b/usr.bin/ftp/ruserpass.c
@@ -111,7 +111,7 @@ next:
continue;
/*
* Allow match either for user's input host name
- * or official hostname. Also allow match of
+ * or official hostname. Also allow match of
* incompletely-specified host in local domain.
*/
if (strcasecmp(host, tokval) == 0)
@@ -135,7 +135,7 @@ next:
case LOGIN:
if (token())
- if (*aname == 0) {
+ if (*aname == 0) {
*aname = malloc((unsigned) strlen(tokval) + 1);
(void) strcpy(*aname, tokval);
} else {
OpenPOWER on IntegriCloud