]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb: Use file_lines_ploadv()
authorVolker Lendecke <vl@samba.org>
Fri, 15 Aug 2025 08:07:41 +0000 (10:07 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 15 Aug 2025 10:53:31 +0000 (10:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
ctdb/conf/node.c

index a242c52dfd6f16262d4efdeed83d2ee70b1fd8da..23dc631455688a1031e2dac6929747d1590fe0fa 100644 (file)
@@ -193,21 +193,14 @@ static struct ctdb_node_map *ctdb_read_nodes_cmd(TALLOC_CTX *mem_ctx,
 {
        char **lines = NULL;
        int nlines;
-       char *p;
-       size_t size;
        struct ctdb_node_map *nodemap = NULL;
        char **argl = command_str_to_args(mem_ctx, nodes_cmd);
 
        if (argl == NULL) {
                return NULL;
        }
-       p = file_ploadv(argl, &size);
-       if (!p) {
-               return NULL;
-       }
 
-       lines = file_lines_parse(p, size, &nlines, mem_ctx);
-       talloc_free(p);
+       lines = file_lines_ploadv(mem_ctx, argl, &nlines);
        if (lines == NULL) {
                return NULL;
        }