summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/perk/perk.h8
-rw-r--r--src/driver/pe_driver_ctx.c4
-rw-r--r--src/driver/pe_unit_ctx.c2
-rw-r--r--src/perk.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index 67d768e..a7720e7 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -41,14 +41,14 @@ extern "C" {
#define PERK_DRIVER_VERBOSITY_USAGE 0x0004
#define PERK_DRIVER_CLONE_VECTOR 0x0008
-#define PERK_DRIVER_FLAG_VERSION 0x0010
-#define PERK_DRIVER_FLAG_DRY_RUN 0x0020
+#define PERK_DRIVER_VERSION 0x0010
+#define PERK_DRIVER_DRY_RUN 0x0020
/* unit action flags */
-#define PERK_ACTION_FLAG_MAP_READWRITE 0x0001
+#define PERK_ACTION_MAP_READWRITE 0x0001
/* unit (text) output & format flags */
-#define PERK_OUTPUT_FLAG_EXPORT_SYMS 0x0001
+#define PERK_OUTPUT_EXPORT_SYMS 0x0001
struct pe_raw_image {
void * addr;
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index af1c0e3..32bd190 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -128,7 +128,7 @@ int pe_get_driver_ctx(
}
case TAG_VERSION:
- dflags |= PERK_DRIVER_FLAG_VERSION;
+ dflags |= PERK_DRIVER_VERSION;
break;
case TAG_OUTPUT:
@@ -136,7 +136,7 @@ int pe_get_driver_ctx(
break;
case TAG_EXPSYMS:
- fflags |= PERK_OUTPUT_FLAG_EXPORT_SYMS;
+ fflags |= PERK_OUTPUT_EXPORT_SYMS;
break;
}
} else
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c
index 5bcac3d..bed99c6 100644
--- a/src/driver/pe_unit_ctx.c
+++ b/src/driver/pe_unit_ctx.c
@@ -26,7 +26,7 @@ int pe_get_unit_ctx(
if (!dctx || !(ctx = calloc(sizeof(*ctx),1)))
return -1;
- prot = (dctx->cctx.actflags & PERK_ACTION_FLAG_MAP_READWRITE)
+ prot = (dctx->cctx.actflags & PERK_ACTION_MAP_READWRITE)
? PROT_READ | PROT_WRITE
: PROT_READ;
diff --git a/src/perk.c b/src/perk.c
index b952a1b..5023750 100644
--- a/src/perk.c
+++ b/src/perk.c
@@ -9,7 +9,7 @@ static void perk_perform_unit_actions(struct pe_unit_ctx * uctx)
{
uint64_t flags = uctx->cctx.fmtflags;
- if (flags & PERK_OUTPUT_FLAG_EXPORT_SYMS)
+ if (flags & PERK_OUTPUT_EXPORT_SYMS)
uctx->cctx.status = pe_output_export_symbols(uctx->meta,&uctx->cctx,0);
}