Signed-off-by: Peter Jones <pjones@redhat.com>
# define EFIVARFS_MAGIC 0xde5e81e4
#endif
-static const char const default_efivarfs_path[] = "/sys/firmware/efi/efivars/";
+static char const default_efivarfs_path[] = "/sys/firmware/efi/efivars/";
-static const char const *
+static char const *
get_efivarfs_path(void)
{
static const char *path;
static int
efivarfs_probe(void)
{
- const char const *path = get_efivarfs_path();
+ const char *path = get_efivarfs_path();
if (!access(path, F_OK)) {
int rc = 0;
#include "generics.h"
#include "util.h"
-static const char const default_vars_path[] = "/sys/firmware/efi/vars/";
+static const char default_vars_path[] = "/sys/firmware/efi/vars/";
-static const char const *
+static const char *
get_vars_path(void)
{
static const char *path;