From: jan Date: Sat, 22 May 2021 14:25:30 +0000 (+0000) Subject: Remove useless islower(2) before toupper(3). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c7141df29cdba2205785422097be3f4d0507f66e;p=openbsd Remove useless islower(2) before toupper(3). OK martijn@ --- diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index a8f0e5f88ce..96266b5ff1d 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpcmd.y,v 1.70 2021/05/20 15:21:03 jan Exp $ */ +/* $OpenBSD: ftpcmd.y,v 1.71 2021/05/22 14:25:30 jan Exp $ */ /* $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $ */ /* @@ -1434,10 +1434,8 @@ upper(s) { char *p; - for (p = s; *p; p++) { - if (islower((unsigned char)*p)) - *p = (char)toupper((unsigned char)*p); - } + for (p = s; *p; p++) + *p = (char)toupper((unsigned char)*p); } static void