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:
David Gibson 2007-12-04 14:26:15 +11:00 committed by Jon Loeliger
parent 2d72816ccf
commit 92cb9a25b1
7 changed files with 58 additions and 58 deletions

View file

@ -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;