projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: improve ipv6_find_hdr() function for IPv6 'set' action
[openvswitch]
/
lib
/
list.c
diff --git
a/lib/list.c
b/lib/list.c
index a236f8c73bfaf4232c9331dd46ab216f3f6f23ca..804a7e56adc10e452f008ffafed9ca2010931ce1 100644
(file)
--- a/
lib/list.c
+++ b/
lib/list.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2008, 2009, 2010, 2011
Nicira Networks
.
+ * Copyright (c) 2008, 2009, 2010, 2011
, 2012 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.
@@
-136,7
+136,7
@@
list_pop_back(struct list *list)
struct list *
list_front(const struct list *list_)
{
struct list *
list_front(const struct list *list_)
{
- struct list *list =
(struct list *) list_
;
+ struct list *list =
CONST_CAST(struct list *, list_)
;
assert(!list_is_empty(list));
return list->next;
assert(!list_is_empty(list));
return list->next;
@@
-147,7
+147,7
@@
list_front(const struct list *list_)
struct list *
list_back(const struct list *list_)
{
struct list *
list_back(const struct list *list_)
{
- struct list *list =
(struct list *) list_
;
+ struct list *list =
CONST_CAST(struct list *, list_)
;
assert(!list_is_empty(list));
return list->prev;
assert(!list_is_empty(list));
return list->prev;