summaryrefslogtreecommitdiffstats
path: root/usr.bin/mg/search.c
diff options
context:
space:
mode:
authorkjell <kjell@openbsd.org>2005-11-18 17:35:17 +0000
committerkjell <kjell@openbsd.org>2005-11-18 17:35:17 +0000
commit2c3ccd67cd43538f305989cd0ecbc2d3a420c775 (patch)
treee03527c89e0efe803466481d2859727a391b84df /usr.bin/mg/search.c
parentKill a stupid interface. kgrow should take direction, not TRUE/FALSE. (diff)
downloadwireguard-openbsd-2c3ccd67cd43538f305989cd0ecbc2d3a420c775.tar.xz
wireguard-openbsd-2c3ccd67cd43538f305989cd0ecbc2d3a420c775.zip
Casefold on replace was killed ages ago (it was wrong). Remove a
leftover (unused) variable.
Diffstat (limited to 'usr.bin/mg/search.c')
-rw-r--r--usr.bin/mg/search.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mg/search.c b/usr.bin/mg/search.c
index 3f71f25c086..e3ebcd29510 100644
--- a/usr.bin/mg/search.c
+++ b/usr.bin/mg/search.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: search.c,v 1.23 2005/10/11 01:00:41 kjell Exp $ */
+/* $OpenBSD: search.c,v 1.24 2005/11/18 17:35:17 kjell Exp $ */
/* This file is in the public domain. */
@@ -553,12 +553,12 @@ retry:
switch (getkey(FALSE)) {
case 'y':
case ' ':
- if (lreplace((RSIZE)plen, news, f) == FALSE)
+ if (lreplace((RSIZE)plen, news) == FALSE)
return (FALSE);
rcnt++;
break;
case '.':
- if (lreplace((RSIZE)plen, news, f) == FALSE)
+ if (lreplace((RSIZE)plen, news) == FALSE)
return (FALSE);
rcnt++;
goto stopsearch;
@@ -570,7 +570,7 @@ retry:
goto stopsearch;
case '!':
do {
- if (lreplace((RSIZE)plen, news, f) == FALSE)
+ if (lreplace((RSIZE)plen, news) == FALSE)
return (FALSE);
rcnt++;
} while (forwsrch() == TRUE);
@@ -617,7 +617,7 @@ replstr(int f, int n)
plen = strlen(pat);
while (forwsrch() == TRUE) {
update();
- if (lreplace((RSIZE)plen, news, f) == FALSE)
+ if (lreplace((RSIZE)plen, news) == FALSE)
return (FALSE);
rcnt++;