diff options
author | midipix <writeonce@midipix.org> | 2016-11-15 12:27:42 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-15 12:27:42 -0500 |
commit | 204e71196db007f92f76ac202a12b7a5b8309272 (patch) | |
tree | 4daccef03be637d83f3931bc31e7e4dc0a12856b | |
parent | 44fcac1011352bf06f6019e2861aecfbe76adc36 (diff) | |
download | perk-204e71196db007f92f76ac202a12b7a5b8309272.tar.bz2 perk-204e71196db007f92f76ac202a12b7a5b8309272.tar.xz |
pe_output_image_category(): signature now matches that of other output api's.
-rw-r--r-- | include/perk/perk.h | 2 | ||||
-rw-r--r-- | src/driver/pe_amain.c | 2 | ||||
-rw-r--r-- | src/output/pe_output_image_category.c | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h index b24be37..8bdce77 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -170,7 +170,7 @@ perk_api void pe_free_unit_ctx (struct pe_unit_ctx *); /* utility api */ perk_api int pe_main (int, char **, char **); -perk_api int pe_output_image_category (const struct pe_driver_ctx *, const struct pe_unit_ctx *, FILE *); +perk_api int pe_output_image_category (const struct pe_driver_ctx *, const struct pe_image_meta *, FILE *); perk_api int pe_output_export_symbols (const struct pe_driver_ctx *, const struct pe_image_meta *, FILE *); perk_api int pe_output_import_libraries(const struct pe_driver_ctx *, const struct pe_image_meta *, FILE *); perk_api int pe_output_error_record (const struct pe_driver_ctx *, const struct pe_error_info *); diff --git a/src/driver/pe_amain.c b/src/driver/pe_amain.c index 5b86432..40eaf9d 100644 --- a/src/driver/pe_amain.c +++ b/src/driver/pe_amain.c @@ -53,7 +53,7 @@ static void pe_perform_unit_actions( uint64_t flags = dctx->cctx->fmtflags; if (flags & PERK_OUTPUT_IMAGE_CATEGORY) - pe_output_image_category(dctx,uctx,0); + pe_output_image_category(dctx,uctx->meta,0); if (flags & PERK_OUTPUT_EXPORT_SYMS) pe_output_export_symbols(dctx,uctx->meta,0); diff --git a/src/output/pe_output_image_category.c b/src/output/pe_output_image_category.c index 432b853..ccf25c4 100644 --- a/src/output/pe_output_image_category.c +++ b/src/output/pe_output_image_category.c @@ -12,14 +12,13 @@ int pe_output_image_category( const struct pe_driver_ctx * dctx, - const struct pe_unit_ctx * uctx, + const struct pe_image_meta * meta, FILE * fout) { struct pe_info_string abi; struct pe_info_string subtype; struct pe_info_string subsystem; struct pe_info_string framework; - const struct pe_image_meta * meta = uctx->meta; if (!fout) fout = stdout; |