From c7141df29cdba2205785422097be3f4d0507f66e Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 22 May 2021 14:25:30 +0000 Subject: [PATCH] Remove useless islower(2) before toupper(3). OK martijn@ --- libexec/ftpd/ftpcmd.y | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 -- 2.20.1