summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2008-06-13 19:01:54 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2008-06-13 19:01:54 +0000
commit649bb1135c6d72e32fb8393d941c6572ee5db673 (patch)
tree2d81c9775a249e84a8529e42057a85b7bdbd2518
parent589e61ea4113959d3e6f89ccd6a13ac56a596f8b (diff)
Allow selfinsert to be called with FFRAND; i.e. from another
function. While here, tighten whitespace.
-rw-r--r--usr.bin/mg/match.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/usr.bin/mg/match.c b/usr.bin/mg/match.c
index 968ad04f001..70bdead6ced 100644
--- a/usr.bin/mg/match.c
+++ b/usr.bin/mg/match.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: match.c,v 1.13 2006/07/25 08:22:32 kjell Exp $ */
+/* $OpenBSD: match.c,v 1.14 2008/06/13 19:01:53 kjell Exp $ */
/* This file is in the public domain. */
@@ -28,21 +28,11 @@ static void displaymatch(struct line *, int);
static struct balance {
char left, right;
} bal[] = {
- {
- '(', ')'
- },
- {
- '[', ']'
- },
- {
- '{', '}'
- },
- {
- '<', '>'
- },
- {
- '\0', '\0'
- }
+ { '(', ')' },
+ { '[', ']' },
+ { '{', '}' },
+ { '<', '>' },
+ { '\0', '\0' }
};
/*
@@ -54,8 +44,6 @@ showmatch(int f, int n)
{
int i, s;
- if (f & FFRAND)
- return (FALSE);
for (i = 0; i < n; i++) {
if ((s = selfinsert(FFRAND, 1)) != TRUE)
return (s);