]> granicus.if.org Git - libnl/commitdiff
nl_object_priv() is inline, so define it in the header
authorPavel Roskin <proski@gnu.org>
Tue, 7 Apr 2009 21:04:04 +0000 (17:04 -0400)
committerThomas Graf <tgr@plip.localdomain>
Thu, 16 Apr 2009 10:29:13 +0000 (12:29 +0200)
include/netlink/object.h
lib/object.c

index bae2bf413a7c11431fa2a976ef3d202cd17cf9eb..ef1ed9ff1687baae58bed4074decb718d423be02 100644 (file)
@@ -56,7 +56,11 @@ extern int                   nl_object_is_marked(struct nl_object *);
 /* Access Functions */
 extern int                     nl_object_get_refcnt(struct nl_object *);
 extern struct nl_cache *       nl_object_get_cache(struct nl_object *);
-extern inline void *           nl_object_priv(struct nl_object *);
+static inline void *           nl_object_priv(struct nl_object *obj)
+{
+       return obj;
+}
+
 
 #ifdef __cplusplus
 }
index 3771af9d804afeea5d2a7c5a9a8d253179da7223..fb44247b9b7a91e142176731599e8a5f14e1c868 100644 (file)
@@ -375,11 +375,6 @@ struct nl_cache *nl_object_get_cache(struct nl_object *obj)
        return obj->ce_cache;
 }
 
-inline void *nl_object_priv(struct nl_object *obj)
-{
-       return obj;
-}
-
 /** @} */
 
 /** @} */