summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-04-20 07:41:23 +0000
committerobrien <obrien@FreeBSD.org>2001-04-20 07:41:23 +0000
commit40b1ea413b644d4758a9e01e4166d96691be686e (patch)
tree3b06aacb0cb4c85f2ae6a0cea1365fdb1eef2ab8 /usr.bin/indent
parentbbdb020320423185fc5e25bb1d43c615f7b34f34 (diff)
downloadFreeBSD-src-40b1ea413b644d4758a9e01e4166d96691be686e.zip
FreeBSD-src-40b1ea413b644d4758a9e01e4166d96691be686e.tar.gz
Fix damage I did in rev 1.4 that broke formatting this example:
void foo(struct bar *bar) { return 0; }
Diffstat (limited to 'usr.bin/indent')
-rw-r--r--usr.bin/indent/lexi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/indent/lexi.c b/usr.bin/indent/lexi.c
index 5970451..7c3892c 100644
--- a/usr.bin/indent/lexi.c
+++ b/usr.bin/indent/lexi.c
@@ -261,6 +261,8 @@ lexi()
return (casestmt);
case 3: /* a "struct" */
+ if (ps.p_l_follow)
+ break; /* inside parens: cast */
/*
* Next time around, we may want to know that we have had a
* 'struct'
OpenPOWER on IntegriCloud