mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
common/buf: rename buf->buf to buf->data
This commit is contained in:
parent
fccc6a2922
commit
a8f98cb90b
10 changed files with 33 additions and 33 deletions
|
|
@ -617,7 +617,7 @@ xml_tree_walk(xmlNode *node, struct server *server)
|
|||
static bool
|
||||
parse_buf(struct server *server, struct buf *buf)
|
||||
{
|
||||
xmlDoc *d = xmlParseMemory(buf->buf, buf->len);
|
||||
xmlDoc *d = xmlParseMemory(buf->data, buf->len);
|
||||
if (!d) {
|
||||
wlr_log(WLR_ERROR, "xmlParseMemory()");
|
||||
return false;
|
||||
|
|
@ -1195,7 +1195,7 @@ handle_pipemenu_readable(int fd, uint32_t mask, void *_ctx)
|
|||
}
|
||||
|
||||
/* Guard against badly formed data such as binary input */
|
||||
if (!starts_with_less_than(ctx->buf.buf)) {
|
||||
if (!starts_with_less_than(ctx->buf.data)) {
|
||||
wlr_log(WLR_ERROR, "expect xml data to start with '<'; abort pipemenu");
|
||||
goto clean_up;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue