From: Eric Engestrom Date: Thu, 8 Aug 2019 09:45:08 +0000 (+0100) Subject: util/anon_file: const string param X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=525a917c6c2a166d72ca83295f6ea32a5d6d83a7;p=mesa.git util/anon_file: const string param Fixes: c0376a123418df0050dc ("util: add anon_file.h for all memfd/temp file usage") Signed-off-by: Eric Engestrom Tested-by: Eric Anholt Tested-by: Andreas Baierl --- 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 3d1d2cf7527..790537b7aee 100644 --- a/src/util/anon_file.h +++ b/src/util/anon_file.h @@ -28,6 +28,6 @@ #include -int os_create_anonymous_file(off_t size, char *debug_name); +int os_create_anonymous_file(off_t size, const char *debug_name); #endif