From 570cecff1413759461c4a003c6c3be48dd40c193 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 6 Aug 2007 17:38:40 +0000 Subject: remove case sensitivity from the board name checking SVN-Revision: 8352 --- tools/firmware-utils/src/mkcsysimg.c | 2 +- tools/firmware-utils/src/mkmylofw.c | 2 +- tools/firmware-utils/src/mkzynfw.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/firmware-utils/src/mkcsysimg.c b/tools/firmware-utils/src/mkcsysimg.c index 648740049b..e1c0e71d16 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 6e3c1b30da..de0942d17a 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 8fb3dadb58..fe4efca6fb 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; } -- cgit v1.2.3