diff options
author | midipix <writeonce@midipix.org> | 2016-11-16 00:07:52 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-16 00:07:52 -0500 |
commit | 8c0fd2dddcdfe366b960fa2e16b670f7c3a47c7a (patch) | |
tree | 9aea00d809d34bbb7a6dcb3867635d3d1283113e /src/driver | |
parent | 7d80bbf952b4b4f31e8e4baef76769c2078aca28 (diff) | |
download | perk-8c0fd2dddcdfe366b960fa2e16b670f7c3a47c7a.tar.bz2 perk-8c0fd2dddcdfe366b960fa2e16b670f7c3a47c7a.tar.xz |
driver: removed --output support (no longer needed).
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/pe_driver_ctx.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c index 32faa7d..8bc1706 100644 --- a/src/driver/pe_driver_ctx.c +++ b/src/driver/pe_driver_ctx.c @@ -121,7 +121,6 @@ int pe_get_driver_ctx( size_t nunits; const char * program; const char * pretty; - int fdout; (void)envp; @@ -132,7 +131,6 @@ int pe_get_driver_ctx( pretty = 0; nunits = 0; - fdout = 0; program = argv_program_name(argv[0]); memset(&cctx,0,sizeof(cctx)); cctx.drvflags = flags; @@ -152,10 +150,6 @@ int pe_get_driver_ctx( cctx.drvflags |= PERK_DRIVER_VERSION; break; - case TAG_OUTPUT: - cctx.output = entry->arg; - break; - case TAG_PRETTY: pretty = entry->arg; break; @@ -184,20 +178,12 @@ int pe_get_driver_ctx( nunits++; } - if (cctx.output && ((fdout = open(cctx.output, - O_CREAT|O_TRUNC|O_WRONLY|O_NOCTTY|O_NOFOLLOW, - S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) < 0)) - return pe_get_driver_ctx_fail(meta); - if (pretty && !strcmp(pretty,"yaml")) cctx.fmtflags |= PERK_PRETTY_YAML; else if (pretty && !strcmp(pretty,"dlltool")) cctx.fmtflags |= PERK_PRETTY_DLLTOOL; - if (!(ctx = pe_driver_ctx_alloc(meta,&cctx,nunits)) && cctx.output) - close(fdout); - - if (!ctx) + if (!(ctx = pe_driver_ctx_alloc(meta,&cctx,nunits))) return pe_get_driver_ctx_fail(meta); ctx->ctx.program = program; |