Tidy-up codestyle

This commit is contained in:
George Oikonomou 2017-12-16 01:14:54 +00:00
parent b6aac6b008
commit fe2c960756
1 changed files with 14 additions and 17 deletions

View File

@ -52,7 +52,6 @@
struct list {
struct list *next;
};
/*---------------------------------------------------------------------------*/
/**
* Initialize a list.
@ -164,8 +163,6 @@ list_add(list_t list, void *item)
void
list_push(list_t list, void *item)
{
/* struct list *l;*/
/* Make sure not to add the same element twice */
list_remove(list, item);
@ -324,7 +321,7 @@ list_insert(list_t list, void *previtem, void *newitem)
void *
list_item_next(void *item)
{
return item == NULL? NULL: ((struct list *)item)->next;
return item == NULL ? NULL : ((struct list *)item)->next;
}
/*---------------------------------------------------------------------------*/
/** @} */