Commit e5e81d65 authored by Eric Engestrom's avatar Eric Engestrom Committed by Juan Suárez Romero

util/anon_file: const string param

Fixes: c0376a12 ("util: add anon_file.h for all memfd/temp file usage")
Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Tested-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Tested-by: Andreas Baierl's avatarAndreas Baierl <ichgeh@imkreisrum.de>
(cherry picked from commit 525a917c)
parent b1339662
......@@ -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__
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment