diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-06 17:38:40 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-06 17:38:40 +0000 |
commit | 6edd708b05636b4790cea0809d2b0a85a4f8b53f (patch) | |
tree | 2f3e44b5fc2aebad0388ddc1bc1aba4e1614ef32 /tools | |
parent | f6e8fec1b4299d418b12953879ecb68f88b84894 (diff) |
remove case sensitivity from the board name checking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8352 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/firmware-utils/src/mkcsysimg.c | 2 | ||||
-rw-r--r-- | tools/firmware-utils/src/mkmylofw.c | 2 | ||||
-rwxr-xr-x | tools/firmware-utils/src/mkzynfw.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/mkcsysimg.c b/tools/firmware-utils/src/mkcsysimg.c index 648740049..e1c0e71d1 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 6e3c1b30d..de0942d17 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 8fb3dadb5..fe4efca6f 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; } |