From 9e5c20c465d4a8ee6ccd5139f02a38b2e73945c0 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 24 Jan 2018 10:14:56 -0800 Subject: [PATCH] Fix search/replace typo. --- npdm.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/npdm.c b/npdm.c index 7b7eea7..06898e2 100644 --- a/npdm.c +++ b/npdm.c @@ -136,7 +136,7 @@ const char *svc_names[0x80] = { }; #define MAX_FS_PERM_RW 0x27 -#define MAX_FS_PERM_int 0x1B +#define MAX_FS_PERM_BOOL 0x1B #define FS_PERM_MASK_NODEBUG 0xBFFFFFFFFFFFFFFFULL const fs_perm_t fs_permissions_rw[MAX_FS_PERM_RW] = { @@ -181,7 +181,7 @@ const fs_perm_t fs_permissions_rw[MAX_FS_PERM_RW] = { {"HostAccess", 0xC000000000400000} }; -const fs_perm_t fs_permissions_int[MAX_FS_PERM_int] = { +const fs_perm_t fs_permissions_bool[MAX_FS_PERM_BOOL] = { {"BisCache", 0x8000000000000080}, {"EraseMmc", 0x8000000000000080}, {"GameCardCertificate", 0x8000000000000010}, @@ -585,13 +585,13 @@ void fac_print(fac_t *fac, fah_t *fah) { } } printf("\n"); - printf(" intean Permissions: "); - for (unsigned int i = 0; i < MAX_FS_PERM_int; i++) { - if (fs_permissions_int[i].mask & perms) { - if (fs_permissions_int[i].mask & (perms & FS_PERM_MASK_NODEBUG)) { - printf("%s\n ", fs_permissions_int[i].name); + printf(" Boolean Permissions: "); + for (unsigned int i = 0; i < MAX_FS_PERM_BOOL; i++) { + if (fs_permissions_bool[i].mask & perms) { + if (fs_permissions_bool[i].mask & (perms & FS_PERM_MASK_NODEBUG)) { + printf("%s\n ", fs_permissions_bool[i].name); } else { - printf("%-32s [DEBUG ONLY]\n ", fs_permissions_int[i].name); + printf("%-32s [DEBUG ONLY]\n ", fs_permissions_bool[i].name); } } }