diff options
author | 2012-05-18 02:13:44 +0000 | |
---|---|---|
committer | 2012-05-18 02:13:44 +0000 | |
commit | 20ea6396e197028a04d4180fbb193a7d37204752 (patch) | |
tree | 56c58beed8b6d4075ee57595f3540f7de2541097 | |
parent | Ignore line continuation when escaped as \\, from Simon Nicolussi. (diff) | |
download | wireguard-openbsd-20ea6396e197028a04d4180fbb193a7d37204752.tar.xz wireguard-openbsd-20ea6396e197028a04d4180fbb193a7d37204752.zip |
Allow no-tab-mode to compile. From James Turner.
note: no-tab-mode needs more work done before removing the NOTABs.
-rw-r--r-- | usr.bin/mg/cmode.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/random.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/util.c | 4 |
3 files changed, 6 insertions, 6 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))) diff --git a/usr.bin/mg/util.c b/usr.bin/mg/util.c index 4ba3465fe99..ecf84087c85 100644 --- a/usr.bin/mg/util.c +++ b/usr.bin/mg/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.30 2011/01/21 19:10:13 kjell Exp $ */ +/* $OpenBSD: util.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))) |