From 404cec1eb804d2a4104d6d086bd702c9391f48c7 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 27 Jun 1997 10:21:22 +0000 Subject: Replace hand-made tolower conversions with real tolower from ctype --- usr.bin/ftp/cmds.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'usr.bin/ftp/cmds.c') 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++; } -- cgit v1.1