summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-11-23 02:04:25 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:26 -0500
commit8fd1f503fdfc593aed4b296cfa7024a4a09d540c (patch)
treee03b524fa0bc97ea46f7dd6521184ce111261690 /src
parentb46e6f435a522bc95e353493c1da3e421d5445be (diff)
downloadperk-8fd1f503fdfc593aed4b296cfa7024a4a09d540c.tar.bz2
perk-8fd1f503fdfc593aed4b296cfa7024a4a09d540c.tar.xz
driver flags: remove the superfluous FLAG_ prefix.
Diffstat (limited to 'src')
-rw-r--r--src/driver/pe_driver_ctx.c4
-rw-r--r--src/driver/pe_unit_ctx.c2
-rw-r--r--src/perk.c2
3 files changed, 4 insertions, 4 deletions
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);
}