]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Make file_ploadv() static
authorVolker Lendecke <vl@samba.org>
Fri, 15 Aug 2025 08:09:18 +0000 (10:09 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 15 Aug 2025 11:53:56 +0000 (11:53 +0000)
All callers want to see lines.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Aug 15 11:53:56 UTC 2025 on atb-devel-224

lib/util/util_file.c
lib/util/util_file.h

index 6c3efdfe2b77f5997f2a853a71d0e3f3d9ebe8bc..f7bdac4bd84ebfb63400e28a9246695c664e571c 100644 (file)
@@ -448,7 +448,7 @@ done:
 /**
  Load from a pipe into memory.
 **/
-char *file_ploadv(char * const argl[], size_t *size)
+static char *file_ploadv(char *const argl[], size_t *size)
 {
        int fd, n;
        char *p = NULL;
index 735a821b9a45be9946f563f2454c33d4ef300177..808ca65abf540e2d0b0203fb6722ee62788a1159 100644 (file)
@@ -72,11 +72,6 @@ _PUBLIC_ int fdprintf(int fd, const char *format, ...) PRINTF_ATTRIBUTE(2,3);
  */
 bool file_compare(const char *path1, const char *path2);
 
-/*
-  load from a pipe into memory.
- */
-char *file_ploadv(char * const argl[], size_t *size);
-
 char **file_lines_ploadv(TALLOC_CTX *mem_ctx,
                         char *const argl[],
                         int *numlines);