summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-06-27 10:21:22 +0000
committerache <ache@FreeBSD.org>1997-06-27 10:21:22 +0000
commit404cec1eb804d2a4104d6d086bd702c9391f48c7 (patch)
tree1e6f52f79a42cca753d0033a1521eb6adfdc07c3 /usr.bin
parentca7a3500533bf51c3d936b7bc489f63ab63bbcce (diff)
downloadFreeBSD-src-404cec1eb804d2a4104d6d086bd702c9391f48c7.zip
FreeBSD-src-404cec1eb804d2a4104d6d086bd702c9391f48c7.tar.gz
Replace hand-made tolower conversions with real tolower from ctype
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/cmds.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index c3973ea..2232553 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -1,4 +1,4 @@
-/* $Id: cmds.c,v 1.7 1997/06/25 08:56:34 msmith Exp $ */
+/* $Id: cmds.c,v 1.8 1997/06/27 09:30:01 ache Exp $ */
/* $NetBSD: cmds.c,v 1.24 1997/05/17 19:44:36 pk Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$Id: cmds.c,v 1.7 1997/06/25 08:56:34 msmith Exp $";
+static char rcsid[] = "$Id: cmds.c,v 1.8 1997/06/27 09:30:01 ache Exp $";
#endif
#endif /* not lint */
@@ -341,9 +341,8 @@ mput(argc, argv)
tp = cp;
tp2 = tmpbuf;
while ((*tp2 = *tp) != '\0') {
- if (isupper((unsigned char)*tp2)) {
- *tp2 = 'a' + *tp2 - 'A';
- }
+ if (isupper((unsigned char)*tp2))
+ *tp2 = tolower((unsigned char)*tp2);
tp++;
tp2++;
}
@@ -484,9 +483,8 @@ usage:
tp = argv[2];
tp2 = tmpbuf;
while ((*tp2 = *tp) != '\0') {
- if (isupper((unsigned char)*tp2)) {
- *tp2 = 'a' + *tp2 - 'A';
- }
+ if (isupper((unsigned char)*tp2))
+ *tp2 = tolower((unsigned char)*tp2);
tp++;
tp2++;
}
OpenPOWER on IntegriCloud