Signed-off-by: Ben Pfaff <blp@nicira.com>
- * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void
list_splice(struct list *before, struct list *first, struct list *last)
{
void
list_splice(struct list *before, struct list *first, struct list *last)
{
last = last->prev;
/* Cleanly remove 'first'...'last' from its current list. */
last = last->prev;
/* Cleanly remove 'first'...'last' from its current list. */
const struct list *e;
size_t cnt = 0;
const struct list *e;
size_t cnt = 0;
- for (e = list->next; e != list; e = e->next)
+ for (e = list->next; e != list; e = e->next) {