diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-12-16 22:11:17 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-12-16 22:11:17 +0200 |
commit | 13232cb8c0d7f099c0d57445f2995c60928b916c (patch) | |
tree | 3a4b14d69eddb7f78023efb2c32fab4a68b2a2d5 /src/list.c | |
parent | 9e978b089268e6bfc4b8fcdf9ef721f6fa92c11f (diff) | |
download | grecs-13232cb8c0d7f099c0d57445f2995c60928b916c.tar.gz grecs-13232cb8c0d7f099c0d57445f2995c60928b916c.tar.bz2 |
Shut useless compiler warnings
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -61,7 +61,7 @@ grecs_list_insert_entry(struct grecs_list *lp, } ent->prev = anchor; - if (p = anchor->next) + if ((p = anchor->next)) p->prev = ent; else lp->tail = ent; @@ -74,11 +74,11 @@ void grecs_list_remove_entry(struct grecs_list *lp, struct grecs_list_entry *ent) { struct grecs_list_entry *p; - if (p = ent->prev) + if ((p = ent->prev)) p->next = ent->next; else lp->head = ent->next; - if (p = ent->next) + if ((p = ent->next)) p->prev = ent->prev; else lp->tail = ent->prev; |