diff options
author | midipix <writeonce@midipix.org> | 2025-06-04 20:20:33 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-06-04 20:20:33 +0000 |
commit | 8ba1bcf4c2b0e6429abec027bc36c349e990c4cc (patch) | |
tree | 2f882c3a42106e67ab162b056c461cc069960daf | |
parent | 3f57204aeaf426a4bfd1eb464f1f46c57ef5d1c3 (diff) | |
download | perk-8ba1bcf4c2b0e6429abec027bc36c349e990c4cc.tar.bz2 perk-8ba1bcf4c2b0e6429abec027bc36c349e990c4cc.tar.xz |
api: PERK_DRIVER_AR_PRINT_ARCHIVE -> PERK_DRIVER_AR_PRINT_MEMBERS (consistency).
-rw-r--r-- | include/perk/perk.h | 2 | ||||
-rw-r--r-- | src/cmds/pe_cmd_ar.c | 4 | ||||
-rw-r--r-- | src/driver/pe_driver_ctx.c | 2 | ||||
-rw-r--r-- | src/internal/perk_ar_impl.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h index 85f7ad0..5c057da 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -60,7 +60,7 @@ extern "C" { #define PERK_DRIVER_AR_MOVE_MEMBERS 0X10000000 /* [-m] */ #define PERK_DRIVER_AR_POSITION_AFTER 0X20000000 /* [-a] */ #define PERK_DRIVER_AR_POSITION_BEFORE 0X40000000 /* [-b] */ -#define PERK_DRIVER_AR_PRINT_ARCHIVE 0X80000000 /* [-p] */ +#define PERK_DRIVER_AR_PRINT_MEMBERS 0X80000000 /* [-p] */ /* error flags */ #define PERK_ERROR_TOP_LEVEL 0x0001 diff --git a/src/cmds/pe_cmd_ar.c b/src/cmds/pe_cmd_ar.c index c27388a..97e94c7 100644 --- a/src/cmds/pe_cmd_ar.c +++ b/src/cmds/pe_cmd_ar.c @@ -23,7 +23,7 @@ static int pe_cmd_ar_perform_unit_actions( if (action == PERK_DRIVER_AR_LIST_MEMBERS) { pe_ar_fn = pe_ar_list_members; - } else if (action == PERK_DRIVER_AR_PRINT_ARCHIVE) { + } else if (action == PERK_DRIVER_AR_PRINT_MEMBERS) { pe_ar_fn = pe_ar_print_members; } else { @@ -74,7 +74,7 @@ static int pe_cmd_ar_verify_cmdline( case PERK_DRIVER_AR_DELETE_MEMBERS: case PERK_DRIVER_AR_APPEND_MEMBERS: case PERK_DRIVER_AR_EXTRACT_MEMBERS: - case PERK_DRIVER_AR_PRINT_ARCHIVE: + case PERK_DRIVER_AR_PRINT_MEMBERS: if (poscmd || posname) return PERK_CUSTOM_ERROR(dctx, PERK_ERR_AR_INVALID_ANCHORS); diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c index fc00c06..11c2e27 100644 --- a/src/driver/pe_driver_ctx.c +++ b/src/driver/pe_driver_ctx.c @@ -308,7 +308,7 @@ static int pe_cctx_update( break; case TAG_AR_PRINT_MEMBERS: - cctx->drvflags |= PERK_DRIVER_AR_PRINT_ARCHIVE; + cctx->drvflags |= PERK_DRIVER_AR_PRINT_MEMBERS; break; } } else { diff --git a/src/internal/perk_ar_impl.h b/src/internal/perk_ar_impl.h index b7c2fbc..0da7559 100644 --- a/src/internal/perk_ar_impl.h +++ b/src/internal/perk_ar_impl.h @@ -34,7 +34,7 @@ |PERK_DRIVER_AR_APPEND_MEMBERS \ |PERK_DRIVER_AR_REPLACE_MEMBERS \ |PERK_DRIVER_AR_EXTRACT_MEMBERS \ - |PERK_DRIVER_AR_PRINT_ARCHIVE) + |PERK_DRIVER_AR_PRINT_MEMBERS) extern const struct argv_option pe_ar_options[]; |