diff options
author | charnier <charnier@FreeBSD.org> | 2003-06-15 09:28:17 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2003-06-15 09:28:17 +0000 |
commit | d46a4b84c36ffc40eac467a205717414ef8311c0 (patch) | |
tree | 8b645c361f8cd29562d33fc7a6cd5e073458ffaa /usr.bin/indent/parse.c | |
parent | 7b4b7a670b84034ab40c33b9bdda786293e36dfe (diff) | |
download | FreeBSD-src-d46a4b84c36ffc40eac467a205717414ef8311c0.zip FreeBSD-src-d46a4b84c36ffc40eac467a205717414ef8311c0.tar.gz |
err() on allocation failure. WARNS=9 compliant
use #if 0, #ifndef lint, #endif /* not lint */, #endif ordering
when a message is provided, use errx() instead of err().
Diffstat (limited to 'usr.bin/indent/parse.c')
-rw-r--r-- | usr.bin/indent/parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/indent/parse.c b/usr.bin/indent/parse.c index 3711a32..65d9a6b 100644 --- a/usr.bin/indent/parse.c +++ b/usr.bin/indent/parse.c @@ -32,11 +32,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #if 0 #ifndef lint static char sccsid[] = "@(#)parse.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #endif + #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -168,7 +170,7 @@ parse(int tk) /* tk: the code for the construct scanned */ ps.p_stack[ps.tos] = stmt; } else - diag2(1, "Statement nesting error."); + diag2(1, "Statement nesting error"); break; case swstmt: /* had switch (...) */ |