summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/perk/perk.h2
-rw-r--r--src/driver/pe_amain.c2
-rw-r--r--src/output/pe_output_image_category.c3
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;