From e9dd489445a04de64cf6967a79c96a602f9c6714 Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Thu, 5 Jan 2017 22:46:24 -0500 Subject: [PATCH] Minor readability changes. --- source/patch/svc.c | 3 +-- source/std/memory.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/patch/svc.c b/source/patch/svc.c index 466869b..5349ba0 100644 --- a/source/patch/svc.c +++ b/source/patch/svc.c @@ -22,8 +22,7 @@ patch_svc_calls(firm_h* firm_loc) svcTable++; // Look for SVC0 (NULL) // Skip to free space - for (svc_tab_open = exceptionsPage; *svc_tab_open != 0xFFFFFFFF; svc_tab_open++) - ; + for (svc_tab_open = exceptionsPage; *svc_tab_open != 0xFFFFFFFF; svc_tab_open++); svc_offs_init = 1; } diff --git a/source/std/memory.c b/source/std/memory.c index 60b7a0a..e1a277c 100644 --- a/source/std/memory.c +++ b/source/std/memory.c @@ -15,8 +15,8 @@ strdup_self(const char* str) char* strdupcat(const char* str, const char *cat) { - size_t l_str = strlen(str); - size_t l_cat = strlen(cat); + size_t l_str = strlen(str); + size_t l_cat = strlen(cat); char *out = malloc(l_str + l_cat + 1); memcpy(out, str, l_str); memcpy(out + l_str, cat, l_cat + 1); -- 2.39.5