summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2005-09-17 16:18:19 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2005-09-17 16:18:19 (GMT)
commit47eda1cf730b2e269e0b4158d62dca73df66890e (patch) (side-by-side diff)
tree80a1224c1a6d4f7d3df60850f0241ac8699c0b94 /src/main.c
parentdb565f0d3eec42cbc61785f0b51c1a5c8544a1c1 (diff)
downloadcflow-47eda1cf730b2e269e0b4158d62dca73df66890e.tar.gz
cflow-47eda1cf730b2e269e0b4158d62dca73df66890e.tar.bz2
(main): Assume POSIX output format if POSIXLY_CORRECT is set.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0324d32..8fd0e10 100644
--- a/src/main.c
+++ b/src/main.c
@@ -658,6 +658,12 @@ main(int argc, char **argv)
included_symbols = xstrdup("s");
excluded_symbols = xstrdup("");
+
+ if (getenv ("POSIXLY_CORRECT")) {
+ if (select_output_driver("posix"))
+ error(0, _("%s: No such output driver"), "posix");
+ output_init();
+ }
sourcerc(&argc, &argv);
if (argp_parse(&argp, argc, argv, ARGP_IN_ORDER, &index, NULL))

Return to:

Send suggestions and report system problems to the System administrator.