diff options
author | lum <lum@cvs.openbsd.org> | 2012-05-18 02:13:45 +0000 |
---|---|---|
committer | lum <lum@cvs.openbsd.org> | 2012-05-18 02:13:45 +0000 |
commit | c3c36ea44d7b04c1368fec572d4e42c3fe2bd8bd (patch) | |
tree | 1fe2bc0eca15b1f3992f74541960d6c6e3c8f20d /usr.bin/mg | |
parent | 81bf87379db78faa2dfbe0bbc91a60d04c51cc74 (diff) |
Allow no-tab-mode to compile. From James Turner.
note: no-tab-mode needs more work done before removing the NOTABs.
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/cmode.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/random.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/cmode.c b/usr.bin/mg/cmode.c index 7fae1aa15d1..674d89d6e77 100644 --- a/usr.bin/mg/cmode.c +++ b/usr.bin/mg/cmode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmode.c,v 1.7 2011/01/18 17:35:42 lum Exp $ */ +/* $OpenBSD: cmode.c,v 1.8 2012/05/18 02:13:44 lum Exp $ */ /* * This file is in the public domain. * @@ -243,7 +243,7 @@ getindent(const struct line *lp, int *curi) break; if (c == '\t' #ifdef NOTAB - && !(curbp-b_flag & BFNOTAB) + && !(curbp->b_flag & BFNOTAB) #endif /* NOTAB */ ) { nicol |= 0x07; diff --git a/usr.bin/mg/random.c b/usr.bin/mg/random.c index 089a73292ad..27fd0c3fde8 100644 --- a/usr.bin/mg/random.c +++ b/usr.bin/mg/random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: random.c,v 1.30 2011/01/21 19:10:13 kjell Exp $ */ +/* $OpenBSD: random.c,v 1.31 2012/05/18 02:13:44 lum Exp $ */ /* This file is in the public domain. */ @@ -378,7 +378,7 @@ indent(int f, int n) (void)gotobol(FFRAND, 1); if ( #ifdef NOTAB - curbp->b_flag & BFNOTAB) ? linsert(n, ' ') == FALSE : + (curbp->b_flag & BFNOTAB) ? linsert(n, ' ') == FALSE : #endif /* NOTAB */ (((i = n / 8) != 0 && linsert(i, '\t') == FALSE) || ((i = n % 8) != 0 && linsert(i, ' ') == FALSE))) |