Code

check-attr: add an internal check_attr() function
authorDmitry Potapov <dpotapov@gmail.com>
Tue, 7 Oct 2008 00:14:18 +0000 (04:14 +0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 12 Oct 2008 20:21:59 +0000 (13:21 -0700)
commit41038c5e1534a6abef21ec4cfc216d13d0ac2fb5
tree932ca820130ff8bb4bbf67aa5a3ee1ca0d1b5b4d
parent5c283eb13c94be6ca974aa722159dc9838d10d97
check-attr: add an internal check_attr() function

This step is preparation to introducing --stdin-paths option.

I have also added maybe_flush_or_die() at the end of main() to ensure that
we exit with the zero code only when we flushed the output successfully.

Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-check-attr.c