mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 11:42:56 +03:00
fix the incorrect copy'n'pasted parameters
This commit is contained in:
parent
49bd536c6e
commit
780752d276
@ -234,16 +234,16 @@ CONST_STRPTR gadlab[OPTS_LAST];
|
|||||||
struct List *websearch_list;
|
struct List *websearch_list;
|
||||||
|
|
||||||
#ifndef __amigaos4__
|
#ifndef __amigaos4__
|
||||||
static void ami_gui_opts_array_to_list(struct List *list, const char array[], int type)
|
static void ami_gui_opts_array_to_list(struct List *list, const char *array[], int type)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
struct Node *node;
|
struct Node *node;
|
||||||
|
|
||||||
NewList(&gow->clicktablist);
|
NewList(list);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
node = AllocClickTabNode(TNA_Text, tabs[i], TNA_Number, i, TAG_DONE);
|
node = AllocClickTabNode(TNA_Text, array[i], TNA_Number, i, TAG_DONE);
|
||||||
AddTail(&gow->clicktablist, node);
|
AddTail(list, node);
|
||||||
i++;
|
i++;
|
||||||
} while (tabs[i] != 0);
|
} while (tabs[i] != 0);
|
||||||
}
|
}
|
||||||
@ -253,8 +253,8 @@ static void ami_gui_opts_free_list(struct List *list, int type)
|
|||||||
struct Node *node;
|
struct Node *node;
|
||||||
struct Node *nnode;
|
struct Node *nnode;
|
||||||
|
|
||||||
if(IsListEmpty((struct List *)&gow->clicktablist)) return;
|
if(IsListEmpty((struct List *)list)) return;
|
||||||
node = GetHead((struct List *)&gow->clicktablist);
|
node = GetHead((struct List *)list);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
nnode = GetSucc(node);
|
nnode = GetSucc(node);
|
||||||
|
Loading…
Reference in New Issue
Block a user