util/anon_file: const string param
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 8 Aug 2019 09:45:08 +0000 (10:45 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 8 Aug 2019 21:02:54 +0000 (22:02 +0100)
Fixes: c0376a123418df0050dc ("util: add anon_file.h for all memfd/temp file usage")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Eric Anholt <eric@anholt.net>
Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
src/util/anon_file.c
src/util/anon_file.h

index c05ed94fdfef5f5556a8d51c082eba7e8e9f84e2..2780c74a680b12e9f0d913e5baf411b93d8fef68 100644 (file)
@@ -112,7 +112,7 @@ create_tmpfile_cloexec(char *tmpname)
  * SCM_RIGHTS methods.
  */
 int
-os_create_anonymous_file(off_t size, char *debug_name)
+os_create_anonymous_file(off_t size, const char *debug_name)
 {
    int fd, ret;
 #ifdef __FreeBSD__
index 3d1d2cf752768024c1658686bee2e2d06f9acaa9..790537b7aee6f27f9d34d06e0e5c746a8d016453 100644 (file)
@@ -28,6 +28,6 @@
 
 #include <sys/types.h>
 
-int os_create_anonymous_file(off_t size, char *debug_name);
+int os_create_anonymous_file(off_t size, const char *debug_name);
 
 #endif