artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4df1e6c
)
Remove useless islower(2) before toupper(3).
author
jan
<jan@openbsd.org>
Sat, 22 May 2021 14:25:30 +0000
(14:25 +0000)
committer
jan
<jan@openbsd.org>
Sat, 22 May 2021 14:25:30 +0000
(14:25 +0000)
OK martijn@
libexec/ftpd/ftpcmd.y
patch
|
blob
|
history
diff --git
a/libexec/ftpd/ftpcmd.y
b/libexec/ftpd/ftpcmd.y
index
a8f0e5f
..
96266b5
100644
(file)
--- a/
libexec/ftpd/ftpcmd.y
+++ b/
libexec/ftpd/ftpcmd.y
@@
-1,4
+1,4
@@
-/* $OpenBSD: ftpcmd.y,v 1.7
0 2021/05/20 15:21:03
jan Exp $ */
+/* $OpenBSD: ftpcmd.y,v 1.7
1 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