summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/util.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-11-23 20:19:56 +0000
committerache <ache@FreeBSD.org>1995-11-23 20:19:56 +0000
commit1f51b31ec3978813dd910fca3dcde0399c4b1956 (patch)
tree64bce36155593f1ef1904b609f7c8f230b961e09 /usr.bin/ncftp/util.c
parentd6bc2c568f53a6b0302dd7290dbdd8a9cdcf967b (diff)
downloadFreeBSD-src-1f51b31ec3978813dd910fca3dcde0399c4b1956.zip
FreeBSD-src-1f51b31ec3978813dd910fca3dcde0399c4b1956.tar.gz
Merge with current. Back out all trailing spaces changes, they
hits again and again.
Diffstat (limited to 'usr.bin/ncftp/util.c')
-rw-r--r--usr.bin/ncftp/util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/ncftp/util.c b/usr.bin/ncftp/util.c
index f8dfd5d..ee2fba3 100644
--- a/usr.bin/ncftp/util.c
+++ b/usr.bin/ncftp/util.c
@@ -314,7 +314,7 @@ unsigned long UnLSDate(char *dstr)
cp++;
day += *cp++ - '0';
min = 0;
-
+
(void) time(&now);
t = localtime(&now);
@@ -376,7 +376,7 @@ unsigned long UnMDTMDate(char *dstr)
&ut.tm_hour,
&ut.tm_min,
&ut.tm_sec) == 6)
- {
+ {
--ut.tm_mon;
ut.tm_year -= 1900;
mt = mktime(&ut);
@@ -735,9 +735,9 @@ struct cmd *getcmd(char *name)
continue;
if (strncmp(name, p, len) == 0) {
if (++nmatches > 1) {
- found = ((struct cmd *) -1);
+ found = ((struct cmd *) -1);
goto xx;
- }
+ }
found = c;
} else if (found != NULL)
break;
@@ -796,7 +796,7 @@ char *LocalPath(char *path)
return (path);
}
/* Otherwise we can look at the first word of the path, and
- * try to expand it, like $HOME/ or ~/, or it is a relative path,
+ * try to expand it, like $HOME/ or ~/, or it is a relative path,
* which is okay since we won't really do anything with it.
*/
*cp = 0;
@@ -831,7 +831,7 @@ char *LocalPath(char *path)
}
if (rest == NULL)
(void) strcpy(path, firstent);
- else
+ else
(void) sprintf(path, "%s/%s", firstent, rest);
return (path);
} /* LocalPath */
OpenPOWER on IntegriCloud