diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-11-21 14:07:46 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-11-21 14:18:06 -0600 |
commit | dbaf07ce620aab249e3502b20a986234a6af1d3a (patch) | |
tree | 583717e19bc4c9a0ce0a1489ce643c7615b66fa3 /common/cmd_fdt.c | |
parent | 8d04f02f6224e6983f4812ea4da704950ec8539c (diff) | |
download | u-boot-imx-dbaf07ce620aab249e3502b20a986234a6af1d3a.zip u-boot-imx-dbaf07ce620aab249e3502b20a986234a6af1d3a.tar.gz u-boot-imx-dbaf07ce620aab249e3502b20a986234a6af1d3a.tar.bz2 |
Fix warnings from import of libfdt
cmd_fdt.c: In function fdt_print:
cmd_fdt.c:586: warning: assignment discards qualifiers from pointer target type
cmd_fdt.c:613: warning: assignment discards qualifiers from pointer target type
cmd_fdt.c:635: warning: assignment discards qualifiers from pointer target type
cmd_fdt.c:636: warning: assignment discards qualifiers from pointer target type
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/cmd_fdt.c')
-rw-r--r-- | common/cmd_fdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index d84c6f0..362d39d 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -44,7 +44,7 @@ DECLARE_GLOBAL_DATA_PTR; static int fdt_valid(void); static int fdt_parse_prop(char *pathp, char *prop, char *newval, char *data, int *len); -static int fdt_print(char *pathp, char *prop, int depth); +static int fdt_print(const char *pathp, char *prop, int depth); /* * Flattened Device Tree command, see the help for parameter definitions. @@ -555,13 +555,13 @@ static void print_data(const void *data, int len) * Recursively print (a portion of) the fdt. The depth parameter * determines how deeply nested the fdt is printed. */ -static int fdt_print(char *pathp, char *prop, int depth) +static int fdt_print(const char *pathp, char *prop, int depth) { static int offstack[MAX_LEVEL]; static char tabs[MAX_LEVEL+1] = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; - void *nodep; /* property node pointer */ + const void *nodep; /* property node pointer */ int nodeoffset; /* node offset from libfdt */ int nextoffset; /* next node offset from libfdt */ uint32_t tag; /* tag */ |