diff options
author | avg <avg@FreeBSD.org> | 2010-03-31 16:55:47 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-03-31 16:55:47 +0000 |
commit | 53545c03a72ae4f39a3c7357ae972c7714553462 (patch) | |
tree | c88518b9395217aed4f4c74102cff976a57b181a /usr.bin/indent | |
parent | 06b1277a42421d9b0375cb05924076fca4ec20cb (diff) | |
download | FreeBSD-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/indent')
-rw-r--r-- | usr.bin/indent/indent.c | 2 |
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; |