common/buf: rename buf->buf to buf->data

This commit is contained in:
John Lindgren 2024-04-16 23:36:32 -04:00 committed by Johan Malm
parent fccc6a2922
commit a8f98cb90b
10 changed files with 33 additions and 33 deletions

View file

@ -1107,7 +1107,7 @@ xml_tree_walk(xmlNode *node)
void
rcxml_parse_xml(struct buf *b)
{
xmlDoc *d = xmlParseMemory(b->buf, b->len);
xmlDoc *d = xmlParseMemory(b->data, b->len);
if (!d) {
wlr_log(WLR_ERROR, "error parsing config file");
return;

View file

@ -53,7 +53,7 @@ process_line(char *line)
buf_add(&value, string_strip(++p));
buf_expand_shell_variables(&value);
buf_expand_tilde(&value);
setenv(key, value.buf, 1);
setenv(key, value.data, 1);
buf_reset(&value);
}