aboutsummaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-12-16 22:11:17 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2015-12-16 22:11:17 +0200
commit13232cb8c0d7f099c0d57445f2995c60928b916c (patch)
tree3a4b14d69eddb7f78023efb2c32fab4a68b2a2d5 /src/list.c
parent9e978b089268e6bfc4b8fcdf9ef721f6fa92c11f (diff)
downloadgrecs-13232cb8c0d7f099c0d57445f2995c60928b916c.tar.gz
grecs-13232cb8c0d7f099c0d57445f2995c60928b916c.tar.bz2
Shut useless compiler warnings
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list.c b/src/list.c
index a9646dc..7d236e3 100644
--- a/src/list.c
+++ b/src/list.c
@@ -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;

Return to:

Send suggestions and report system problems to the System administrator.