remove case sensitivity from the board name checking
authorGabor Juhos <juhosg@openwrt.org>
Mon, 6 Aug 2007 17:38:40 +0000 (17:38 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 6 Aug 2007 17:38:40 +0000 (17:38 +0000)
SVN-Revision: 8352

tools/firmware-utils/src/mkcsysimg.c
tools/firmware-utils/src/mkmylofw.c
tools/firmware-utils/src/mkzynfw.c

index 648740049bed4bc65cf0d62572aa2ccb299630ca..e1c0e71d1642e6c8869aa1fda0aa815e727ac457 100644 (file)
@@ -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;
                }
index 6e3c1b30da900d44a6d4e6e7d4f6dad8faf3fbd0..de0942d17a970bd2cb48859a62ed480b37df3524 100644 (file)
@@ -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;
                }
index 8fb3dadb58f55d5a8f2c2e6a146b1925b01dbef3..fe4efca6fba6253da96a2f3222fea274d19cc2ea 100755 (executable)
@@ -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;
                }