diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-12-04 14:26:15 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-12-04 07:54:03 -0600 |
commit | 92cb9a25b1a9117f4dacb0bce8c16b90b73b8698 (patch) | |
tree | fee6764026b45208e0f11e5066930b002b307e14 /fstree.c | |
parent | 2d72816ccfdcfd8039ab0b8883f9eeac895984bb (diff) | |
download | dtc-92cb9a25b1a9117f4dacb0bce8c16b90b73b8698.zip dtc-92cb9a25b1a9117f4dacb0bce8c16b90b73b8698.tar.gz dtc-92cb9a25b1a9117f4dacb0bce8c16b90b73b8698.tar.bz2 |
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>
Diffstat (limited to 'fstree.c')
-rw-r--r-- | fstree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |