remove case sensitivity from the board name checking
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 6 Aug 2007 17:38:40 +0000 (17:38 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 6 Aug 2007 17:38:40 +0000 (17:38 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8352 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 6487400..e1c0e71 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 6e3c1b3..de0942d 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 8fb3dad..fe4efca 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;
                }
This page took 0.031015 seconds and 4 git commands to generate.