util/anon_file: const string param
Fixes: c0376a1234
("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>
This commit is contained in:
parent
8a028b0df2
commit
525a917c6c
|
@ -112,7 +112,7 @@ create_tmpfile_cloexec(char *tmpname)
|
||||||
* SCM_RIGHTS methods.
|
* SCM_RIGHTS methods.
|
||||||
*/
|
*/
|
||||||
int
|
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;
|
int fd, ret;
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
|
|
|
@ -28,6 +28,6 @@
|
||||||
|
|
||||||
#include <sys/types.h>
|
#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
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue