Mesa (staging/19.1): util/anon_file: const string param

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 27 10:01:50 UTC 2019


Module: Mesa
Branch: staging/19.1
Commit: 50c26368ca9d41158969b46526dc4e9ad708c92f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=50c26368ca9d41158969b46526dc4e9ad708c92f

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Thu Aug  8 10:45:08 2019 +0100

util/anon_file: const string param

Fixes: c0376a123418df0050dc ("util: add anon_file.h for all memfd/temp file usage")
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Tested-by: Eric Anholt <eric at anholt.net>
Tested-by: Andreas Baierl <ichgeh at imkreisrum.de>
(cherry picked from commit 525a917c6c2a166d72ca83295f6ea32a5d6d83a7)

---

 src/util/anon_file.c | 2 +-
 src/util/anon_file.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/anon_file.c b/src/util/anon_file.c
index c05ed94fdfe..2780c74a680 100644
--- a/src/util/anon_file.c
+++ b/src/util/anon_file.c
@@ -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__
diff --git a/src/util/anon_file.h b/src/util/anon_file.h
index 8bec8d5458b..2984ea2c485 100644
--- a/src/util/anon_file.h
+++ b/src/util/anon_file.h
@@ -29,6 +29,6 @@
 #include <sys/types.h>
 #include "util/macros.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




More information about the mesa-commit mailing list