mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
dtc: Add many const qualifications
This adds 'const' qualifiers to many variables and functions. In particular it's now used for passing names to the tree accesor functions. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
2d72816ccf
commit
92cb9a25b1
7 changed files with 58 additions and 58 deletions
4
fstree.c
4
fstree.c
|
@ -23,7 +23,7 @@
|
|||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
static struct node *read_fstree(char *dirname)
|
||||
static struct node *read_fstree(const char *dirname)
|
||||
{
|
||||
DIR *d;
|
||||
struct dirent *de;
|
||||
|
@ -80,7 +80,7 @@ static struct node *read_fstree(char *dirname)
|
|||
return tree;
|
||||
}
|
||||
|
||||
struct boot_info *dt_from_fs(char *dirname)
|
||||
struct boot_info *dt_from_fs(const char *dirname)
|
||||
{
|
||||
struct node *tree;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue