From 8fd1f503fdfc593aed4b296cfa7024a4a09d540c Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 23 Nov 2015 02:04:25 -0500 Subject: driver flags: remove the superfluous FLAG_ prefix. --- src/driver/pe_driver_ctx.c | 4 ++-- src/driver/pe_unit_ctx.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/driver') 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; -- cgit v1.2.3