From 076671e7aa28451de087088c2e47f9e6064ae434 Mon Sep 17 00:00:00 2001 From: David Timber Date: Fri, 21 Aug 2020 16:58:23 +0930 Subject: Protocol change ... * Add series of macros for protocol: prne_getmsbN() and prne_recmb_msgN() * Bugfix: prne_nstreq() * Protocol changes * prne_htbt_host_info.rerun_cnt -> prne_htbt_host_info.crash_cnt * prne_htbt_host_info.host_cred_len: range 0 - 255 * prne_htbt_host_info.host_cred is now base64 string * prne_htbt_bin_meta.args_len: 16bit to 12bit * Rest reserved bits * And PRNE_HTBT_ARG_MEM_MAX is set to 4095 --- src/util_rt.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/util_rt.c') diff --git a/src/util_rt.c b/src/util_rt.c index 6d44f52..52ea0cf 100644 --- a/src/util_rt.c +++ b/src/util_rt.c @@ -99,13 +99,7 @@ size_t prne_getpagesize (void) { } bool prne_nstreq (const char *a, const char *b) { - if (a == NULL && b == NULL) { - return true; - } - if (a == NULL || b == NULL) { - return false; - } - return strcmp(a, b) == 0; + return strcmp(a == NULL ? "" : a, b == NULL ? "" : b) == 0; } size_t prne_nstrlen (const char *s) { -- cgit