From 53545c03a72ae4f39a3c7357ae972c7714553462 Mon Sep 17 00:00:00 2001 From: avg Date: Wed, 31 Mar 2010 16:55:47 +0000 Subject: 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 --- usr.bin/indent/indent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin') 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; -- cgit v1.1