aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-19 18:17:22 +0200
committerDuncaen <mail@duncano.de>2017-05-19 18:41:03 +0200
commitcfbea41d7debee05440ea3ab0465674f1e8ce5ee (patch)
tree4b4888f2841e76a7d2f781f13473408d9b6eff09
parent6bf3c1c1e6553d3cafbd66200d192d4625e41b34 (diff)
downloadlobase-cfbea41d7debee05440ea3ab0465674f1e8ce5ee.tar.gz
usr.bin/spell: update to OPENBSD_6_1
-rw-r--r--usr.bin/spell/look.c8
-rw-r--r--usr.bin/spell/spell.18
2 files changed, 7 insertions, 9 deletions
diff --git a/usr.bin/spell/look.c b/usr.bin/spell/look.c
index b9e0b25..87e0caa 100644
--- a/usr.bin/spell/look.c
+++ b/usr.bin/spell/look.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: look.c,v 1.4 2009/10/27 23:59:43 deraadt Exp $ */
+/* $OpenBSD: look.c,v 1.7 2016/09/13 15:29:25 millert Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -52,7 +52,7 @@ look(u_char *string, u_char *front, u_char *back)
/* Convert string to lower case before searching. */
for (s = string; *s; s++) {
if (isupper(*s))
- *s = _tolower(*s);
+ *s = tolower(*s);
}
front = binary_search(string, front, back);
@@ -162,10 +162,8 @@ compare(u_char *s1, u_char *s2, u_char *back)
for (;; ++s1, ++s2) {
if (*s2 == '\n' || s2 == back)
ch = '\0';
- else if (isupper(*s2))
- ch = _tolower(*s2);
else
- ch = *s2;
+ ch = tolower(*s2);
if (*s1 != ch)
return (*s1 - ch);
if (ch == '\0')
diff --git a/usr.bin/spell/spell.1 b/usr.bin/spell/spell.1
index fc48d3d..3dcc6af 100644
--- a/usr.bin/spell/spell.1
+++ b/usr.bin/spell/spell.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: spell.1,v 1.12 2014/01/30 17:18:46 sobrado Exp $
+.\" $OpenBSD: spell.1,v 1.13 2016/12/28 22:47:11 schwarze Exp $
.\"
.\" Copyright (C) 1985, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -61,7 +61,7 @@
.\"
.\" @(#)spell.1 8.2 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: January 30 2014 $
+.Dd $Mdocdate: December 28 2016 $
.Dt SPELL 1
.Os
.Sh NAME
@@ -161,7 +161,7 @@ and
commands.
.It Fl l
Use
-.Xr delatex
+.Sy delatex
instead of
.Xr deroff 1
if it is present on the system.
@@ -179,7 +179,7 @@ Use the specified stop list instead of the default system stop list.
The stop list must be sorted as specified above.
.It Fl t
Use
-.Xr detex
+.Sy detex
instead of
.Xr deroff 1
if it is present on the system.