summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-15 09:52:55 -0500
committermidipix <writeonce@midipix.org>2016-11-15 09:52:55 -0500
commite34e5c6293091040fb4051d164f76b59202f19b7 (patch)
treea0aa5d03b5546ba61ae56a1b73d11489bbe5942e
parentcd4ace49776d042189f1066a357d1ca2d9f81332 (diff)
downloadperk-e34e5c6293091040fb4051d164f76b59202f19b7.tar.bz2
perk-e34e5c6293091040fb4051d164f76b59202f19b7.tar.xz
utility: code maintenance: removed pe_paragraph_break().
-rw-r--r--src/driver/pe_amain.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/driver/pe_amain.c b/src/driver/pe_amain.c
index 3096561..5b86432 100644
--- a/src/driver/pe_amain.c
+++ b/src/driver/pe_amain.c
@@ -46,35 +46,20 @@ static ssize_t pe_version(struct pe_driver_ctx * dctx)
verclr[4],verinfo->commit,verclr[5]);
}
-static ssize_t pe_paragraph_break(int * fpara)
-{
- if (*fpara) {
- *fpara = 0;
- return fputc('\n',stdout);
- } else
- return 0;
-}
-
static void pe_perform_unit_actions(
const struct pe_driver_ctx * dctx,
struct pe_unit_ctx * uctx)
{
- int fpara = 0;
uint64_t flags = dctx->cctx->fmtflags;
if (flags & PERK_OUTPUT_IMAGE_CATEGORY)
pe_output_image_category(dctx,uctx,0);
- if (flags & PERK_OUTPUT_EXPORT_SYMS) {
+ if (flags & PERK_OUTPUT_EXPORT_SYMS)
pe_output_export_symbols(dctx,uctx->meta,0);
- fpara += uctx->meta->summary.nexpsyms;
- }
- if ((flags & PERK_OUTPUT_IMPORT_LIBS) || (flags & PERK_OUTPUT_IMPORT_SYMS)) {
- pe_paragraph_break(&fpara);
+ if ((flags & PERK_OUTPUT_IMPORT_LIBS) || (flags & PERK_OUTPUT_IMPORT_SYMS))
pe_output_import_libraries(dctx,uctx->meta,0);
- fpara += (uctx->meta->summary.nimplibs > 0);
- }
}
static int pe_exit(struct pe_driver_ctx * dctx, int ret)