static int meminfo_make_hash_failed (
struct meminfo_info *info)
{
- #define htVAL(f) e.key = STRINGIFY(f) ":"; e.data = &info->hist.new. f; \
+ #define htVAL(f) e.key = STRINGIFY(f); e.data = &info->hist.new. f; \
if (!hsearch_r(e, ENTER, &ep, &info->hashtab)) return 1;
- #define htXTRA(k,f) e.key = STRINGIFY(k) ":"; e.data = &info->hist.new. f; \
+ #define htXTRA(k,f) e.key = STRINGIFY(k); e.data = &info->hist.new. f; \
if (!hsearch_r(e, ENTER, &ep, &info->hashtab)) return 1;
ENTRY e, *ep;
size_t n;
static ENTRY e; // just to keep coverity off our backs (e.data)
ENTRY *ep;
- if (!(tail = strchr(head, ' ')))
+ if (!(tail = strchr(head, ':')))
break;
*tail = '\0';
valptr = NULL;