void *buf;
int sz;
- asprintf(&path, "%s/%s", dev.dtnode, node);
+ (void) asprintf(&path, "%s/%s", dev.dtnode, node);
buf = readfile(path, &sz);
free(path);
dev.min_freq = ~0;
dev.max_freq = 0;
- asprintf(&path, "%s/%s", dev.dtnode, "qcom,gpu-pwrlevels");
+ (void) asprintf(&path, "%s/%s", dev.dtnode, "qcom,gpu-pwrlevels");
ret = nftw(path, find_freqs_fn, 64, 0);
if (ret < 0)
redraw_counter_value_raw(WINDOW *win, float val)
{
char *str;
- asprintf(&str, "%'.2f", val);
+ (void) asprintf(&str, "%'.2f", val);
waddstr(win, str);
whline(win, ' ', w - getcurx(win));
free(str);
config_setting_t *root = config_root_setting(&cfg);
/* per device settings: */
- asprintf(&str, "a%dxx", dev.chipid >> 24);
+ (void) asprintf(&str, "a%dxx", dev.chipid >> 24);
setting = config_setting_get_member(root, str);
if (!setting)
setting = config_setting_add(root, str, CONFIG_TYPE_GROUP);