]> git.proxmox.com Git - ovs.git/commitdiff
lib: Use proper type cast to poison lists.
authorJoe Stringer <joe@ovn.org>
Tue, 15 Dec 2015 06:30:11 +0000 (22:30 -0800)
committerJoe Stringer <joe@ovn.org>
Tue, 15 Dec 2015 18:56:38 +0000 (10:56 -0800)
'struct ovs_list' comprises of two pointers to 'struct ovs_list'.
Use these in the cast rather than void*.

VMware-BZ: #1571356
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/list.h

index db4a61365cf863893652d8297e066949b5a229ea..f9c9d850717e35b73df71a50f4d46e81c8c06996 100644 (file)
@@ -26,8 +26,8 @@
 /* "struct ovs_list" with pointers that will (probably) cause segfaults if
  * dereferenced and, better yet, show up clearly in a debugger. */
 #define OVS_LIST_POISON \
-    (struct ovs_list) { (void *) (uintptr_t) 0xccccccccccccccccULL, \
-                        (void *) (uintptr_t) 0xccccccccccccccccULL }
+(struct ovs_list) { (struct ovs_list *) (uintptr_t) 0xccccccccccccccccULL, \
+                    (struct ovs_list *) (uintptr_t) 0xccccccccccccccccULL }
 
 static inline void list_init(struct ovs_list *);
 static inline void list_poison(struct ovs_list *);