Skip to content

Commit

Permalink
Fix a couple of places where we overuse const.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Jun 30, 2016
1 parent 591b8f3 commit 199fbf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/efivarfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
# 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;
Expand All @@ -59,7 +59,7 @@ get_efivarfs_path(void)
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;
Expand Down
4 changes: 2 additions & 2 deletions src/vars.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#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;
Expand Down

0 comments on commit 199fbf8

Please sign in to comment.