summaryrefslogtreecommitdiff
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-08-06 17:38:40 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-08-06 17:38:40 +0000
commit570cecff1413759461c4a003c6c3be48dd40c193 (patch)
treef6c582fa6192bce98945721df048dd7ab4121a18 /tools/firmware-utils
parentfe1b8fca48a3717d25d7d7d39740a2a59bccc137 (diff)
downloadmtk-20170518-570cecff1413759461c4a003c6c3be48dd40c193.zip
mtk-20170518-570cecff1413759461c4a003c6c3be48dd40c193.tar.gz
mtk-20170518-570cecff1413759461c4a003c6c3be48dd40c193.tar.bz2
remove case sensitivity from the board name checking
SVN-Revision: 8352
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/mkcsysimg.c2
-rw-r--r--tools/firmware-utils/src/mkmylofw.c2
-rwxr-xr-xtools/firmware-utils/src/mkzynfw.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/mkcsysimg.c b/tools/firmware-utils/src/mkcsysimg.c
index 6487400..e1c0e71 100644
--- a/tools/firmware-utils/src/mkcsysimg.c
+++ b/tools/firmware-utils/src/mkcsysimg.c
@@ -728,7 +728,7 @@ find_board(char *model)
ret = NULL;
for (board = boards; board->model != NULL; board++){
- if (strcmp(model, board->model) == 0) {
+ if (strcasecmp(model, board->model) == 0) {
ret = board;
break;
}
diff --git a/tools/firmware-utils/src/mkmylofw.c b/tools/firmware-utils/src/mkmylofw.c
index 6e3c1b3..de0942d 100644
--- a/tools/firmware-utils/src/mkmylofw.c
+++ b/tools/firmware-utils/src/mkmylofw.c
@@ -325,7 +325,7 @@ find_board(char *model){
board = NULL;
for (tmp = boards; tmp->model != NULL; tmp++){
- if (strcmp(model, tmp->model) == 0) {
+ if (strcasecmp(model, tmp->model) == 0) {
board = tmp;
break;
}
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c
index 8fb3dad..fe4efca 100755
--- a/tools/firmware-utils/src/mkzynfw.c
+++ b/tools/firmware-utils/src/mkzynfw.c
@@ -732,7 +732,7 @@ find_board(char *name)
ret = NULL;
for (board = boards; board->name != NULL; board++){
- if (strcmp(name, board->name) == 0) {
+ if (strcasecmp(name, board->name) == 0) {
ret = board;
break;
}