X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Ffdt.c;h=36cc7265406425d7317aff40d8c944aff735fd23;hb=f9f5f92bc54b035223e447bc5740544efd0569d9;hp=10d8f3230bb009224b91d88722632e9b810598ed;hpb=8244127db93d6cf17d2b35e9083400a78015c061;p=oweals%2Fu-boot.git diff --git a/cmd/fdt.c b/cmd/fdt.c index 10d8f3230b..36cc726540 100644 --- a/cmd/fdt.c +++ b/cmd/fdt.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -285,7 +286,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) /* * Set the value of a property in the working_fdt. */ - } else if (argv[1][0] == 's') { + } else if (strncmp(argv[1], "se", 2) == 0) { char *pathp; /* path */ char *prop; /* property */ int nodeoffset; /* node offset from libfdt */