Declare read-only data const
This commit is contained in:
committed by
Serge Hallyn
parent
44917600b6
commit
ae38d3a87f
@ -14,7 +14,7 @@ static bool path_exists(const char *p)
|
||||
|
||||
static const char *btrfs_cmd(void)
|
||||
{
|
||||
const char *btrfs_paths[] = {"/sbin/btrfs",
|
||||
const char *const btrfs_paths[] = {"/sbin/btrfs",
|
||||
"/bin/btrfs", "/usr/sbin/btrfs", "/usr/bin/btrfs", NULL};
|
||||
const char *p;
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user