summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-03-31 16:55:47 +0000
committeravg <avg@FreeBSD.org>2010-03-31 16:55:47 +0000
commit53545c03a72ae4f39a3c7357ae972c7714553462 (patch)
treec88518b9395217aed4f4c74102cff976a57b181a /usr.bin
parent06b1277a42421d9b0375cb05924076fca4ec20cb (diff)
downloadFreeBSD-src-53545c03a72ae4f39a3c7357ae972c7714553462.zip
FreeBSD-src-53545c03a72ae4f39a3c7357ae972c7714553462.tar.gz
indent(1): correctly handle case/label at the very start of a function
Obtained from: NetBSD (rev. 1.11 of indent.c) MFC after: 1 week
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/indent/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c
index 9917960..7820ebe 100644
--- a/usr.bin/indent/indent.c
+++ b/usr.bin/indent/indent.c
@@ -675,7 +675,7 @@ check_type:
ps.want_blank = true;
break;
}
- if (ps.in_decl) {
+ if (ps.in_or_st) {
*e_code++ = ':';
ps.want_blank = false;
break;
OpenPOWER on IntegriCloud