1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-04 20:39:49 +03:00

remove case sensitivity from the board name checking

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8352 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2007-08-06 17:38:40 +00:00
parent f6e8fec1b4
commit 6edd708b05
3 changed files with 3 additions and 3 deletions

View 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;
}

View 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;
}

View File

@ -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;
}