From: Gabor Juhos Date: Mon, 6 Aug 2007 17:38:40 +0000 (+0000) Subject: remove case sensitivity from the board name checking X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5350e289a499ad0b3220adde20e42db1e9a20bc7;p=project%2Ffirmware-utils.git remove case sensitivity from the board name checking SVN-Revision: 8352 --- diff --git a/src/mkcsysimg.c b/src/mkcsysimg.c index 6487400..e1c0e71 100644 --- a/src/mkcsysimg.c +++ b/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/src/mkmylofw.c b/src/mkmylofw.c index 6e3c1b3..de0942d 100644 --- a/src/mkmylofw.c +++ b/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/src/mkzynfw.c b/src/mkzynfw.c index 8fb3dad..fe4efca 100755 --- a/src/mkzynfw.c +++ b/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; }