summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/main.c
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/ncftp/main.c
parentf3a2b348daf9fa6063c38d2d69563f732a2f80e7 (diff)
downloadFreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.zip
FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'usr.bin/ncftp/main.c')
-rw-r--r--usr.bin/ncftp/main.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c
index 68d9da7..b0a11c4 100644
--- a/usr.bin/ncftp/main.c
+++ b/usr.bin/ncftp/main.c
@@ -141,7 +141,7 @@ void main(int argc, char **argv)
if ((cp = rindex(argv[0], '/'))) cp++;
else cp = argv[0];
(void) Strncpy(progname, cp);
-
+
sptr = getservbyname("ftp", "tcp");
if (sptr == 0) fatal("ftp/tcp: unknown service");
serv = *sptr;
@@ -185,7 +185,7 @@ Re-compile, this time with -DZCAT=\\\"/path/to/zcat\\\".\n");
#ifdef SOCKS
SOCKSinit("ncftp");
#endif
-
+
/* Setup our pager variable, before we run through the rc,
which may change it. */
set_pager(getenv("PAGER"), 0);
@@ -255,7 +255,7 @@ Re-compile, this time with -DZCAT=\\\"/path/to/zcat\\\".\n");
case 'D':
debug = atoi(Optarg);
break;
-
+
case 'V':
set_verbose(Optarg, 0);
break;
@@ -323,12 +323,12 @@ Examples:\n\
ReadRecentSitesFile();
(void) fix_options(); /* adjust "options" according to "debug" */
-
+
fromatty = doing_script = isatty(0);
toatty = isatty(1);
(void) UserLoggedIn(); /* Init parent-death detection. */
cpend = 0; /* no pending replies */
-
+
if (*logfname)
logf = fopen (logfname, "a");
@@ -363,7 +363,7 @@ For testing purposes only. Do not re-distribute or subject to novice users."
#endif
#ifndef CURSES
- (void) printf("%sNcFTP %s by Mike Gleason, NCEMRSoft.%s%s%s%s\n",
+ (void) printf("%sNcFTP %s by Mike Gleason, NCEMRSoft.%s%s%s%s\n",
tcap_boldface,
FTP_VERSION,
tcap_normal,
@@ -373,7 +373,7 @@ For testing purposes only. Do not re-distribute or subject to novice users."
);
#else
char vis[256];
- (void) sprintf(vis, "%sNcFTP %s by Mike Gleason, NCEMRSoft.%s%s%s%s\n",
+ (void) sprintf(vis, "%sNcFTP %s by Mike Gleason, NCEMRSoft.%s%s%s%s\n",
tcap_boldface,
FTP_VERSION,
tcap_normal,
@@ -419,7 +419,7 @@ int getuserinfo(void)
struct passwd *pw;
string str;
extern char *home; /* for glob.c */
-
+
home = uinfo.homedir; /* for glob.c */
pw = NULL;
#ifdef USE_GETPWUID
@@ -512,7 +512,7 @@ int init_arrays(void)
goto barf;
if ((reply_string = (char *) malloc((size_t)(RECEIVEDLINELEN))) == NULL)
goto barf;
-
+
*macbuf = '\0';
init_transfer_buffer();
return (0);
@@ -530,7 +530,7 @@ void init_transfer_buffer(void)
{
extern char *xferbuf;
extern size_t xferbufsize;
-
+
/* Make sure we use a multiple of BUFSIZ for efficiency. */
xferbufsize = (MAX_XFER_BUFSIZE / BUFSIZ) * BUFSIZ;
while (1) {
@@ -539,7 +539,7 @@ void init_transfer_buffer(void)
break;
xferbufsize >>= 2;
}
-
+
if (xferbuf != NULL) return;
fatal("out of memory for transfer buffer.");
} /* init_transfer_buffer */
@@ -550,7 +550,7 @@ void init_transfer_buffer(void)
void init_prompt(void)
{
register char *cp;
-
+
percent_flags = at_flags = 0;
for (cp = prompt; *cp; cp++) {
if (*cp == '%') percent_flags = 1;
@@ -736,9 +736,9 @@ char *strprompt(void)
*q++ = *p;
}
*q = '\0';
- } else
+ } else
(void) strcpy(prompt2, prompt);
-
+
#ifndef NO_STRFTIME
if (percent_flags) {
/* only strftime if the user requested it (with a %something),
@@ -925,7 +925,7 @@ help(int argc, char **argv)
Commands may be abbreviated. 'help showall' shows aliases, invisible and\n\
unsupported commands. 'help <command>' gives a brief description of <command>.\n\n");
- for (c = cmdtab, nCmds2Print=0; c->c_name != NULL; c++)
+ for (c = cmdtab, nCmds2Print=0; c->c_name != NULL; c++)
if (!c->c_hidden || showall)
nCmds2Print++;
@@ -1015,7 +1015,7 @@ void trim_log(void)
}
if (*str != '\t') break;
}
-
+
/* copy the remaining lines in "old" to "new" */
(void) Strncpy(tmplogname, logfname);
tmplogname[strlen(tmplogname) - 1] = 'T';
@@ -1100,7 +1100,7 @@ int termcap_get(char **dest, char *attr)
} /* termcap_get */
-
+
void termcap_init(void)
{
char *term;
OpenPOWER on IntegriCloud