mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-16 12:28:11 +00:00
[common] fix objectlist_push type
This commit is contained in:
@@ -52,7 +52,7 @@ void objectlist_free(ObjectList * ol)
|
||||
*ol = NULL;
|
||||
}
|
||||
|
||||
int objectlist_push (ObjectList ol, char * str)
|
||||
int objectlist_push(ObjectList ol, void * object)
|
||||
{
|
||||
if (ol->count == ol->size)
|
||||
{
|
||||
@@ -61,7 +61,7 @@ int objectlist_push (ObjectList ol, char * str)
|
||||
}
|
||||
|
||||
unsigned int index = ol->count;
|
||||
ol->list[ol->count++] = str;
|
||||
ol->list[ol->count++] = object;
|
||||
return index;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user