netdev: Remove may_create/may_open flags.
[openvswitch] / lib / util.h
index 9df6db5836833522dfeb955fa98e19354f232fda..0e9353dbd5c42056eae02da2d283480cdabdab8a 100644 (file)
@@ -80,7 +80,7 @@ extern const char *program_name;
 /* Given POINTER, the address of the given MEMBER in a STRUCT object, returns
    the STRUCT object. */
 #define CONTAINER_OF(POINTER, STRUCT, MEMBER)                           \
-        ((STRUCT *) ((char *) (POINTER) - offsetof (STRUCT, MEMBER)))
+        ((STRUCT *) (void *) ((char *) (POINTER) - offsetof (STRUCT, MEMBER)))
 
 #ifdef  __cplusplus
 extern "C" {