aboutsummaryrefslogtreecommitdiff
path: root/fstree.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-12-04 14:26:15 +1100
committerJon Loeliger <jdl@freescale.com>2007-12-04 07:54:03 -0600
commit92cb9a25b1a9117f4dacb0bce8c16b90b73b8698 (patch)
treefee6764026b45208e0f11e5066930b002b307e14 /fstree.c
parent2d72816ccfdcfd8039ab0b8883f9eeac895984bb (diff)
downloaddtc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fstree.c b/fstree.c
index 28fd94c..2a160a4 100644
--- a/fstree.c
+++ b/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;