diff options
author | David Timber <mieabby@gmail.com> | 2020-08-21 16:58:23 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-08-21 16:58:23 +0930 |
commit | 076671e7aa28451de087088c2e47f9e6064ae434 (patch) | |
tree | 68c1bd3ed02c3491996a060cbeb4d4430366cdf6 /src/util_rt.c | |
parent | d1f520233b807f0ac4cc4019ce88759262f3c9bf (diff) |
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
Diffstat (limited to 'src/util_rt.c')
-rw-r--r-- | src/util_rt.c | 8 |
1 files changed, 1 insertions, 7 deletions
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) { |