|
|
a1079a3 |
From 84fefcadcde5d6c343db7f5c1744f6b1f070bc71 Mon Sep 17 00:00:00 2001
|
|
|
a1079a3 |
From: Peter Jones <pjones@redhat.com>
|
|
|
a1079a3 |
Date: Thu, 14 May 2009 11:30:40 -0400
|
|
|
a1079a3 |
Subject: [PATCH] Remove "inline" keyword from nl_object_priv().
|
|
|
a1079a3 |
|
|
|
a1079a3 |
"extern inline foo();" in a header file generates a compiler warning in
|
|
|
a1079a3 |
consumers of the library. Also, it doesn't make any sense whatsoever.
|
|
|
a1079a3 |
For this reason, and the fact that this function is not used at all in
|
|
|
a1079a3 |
the file in which it's defined, I have removed the "inline" keyword.
|
|
|
a1079a3 |
---
|
|
|
a1079a3 |
doc/Doxyfile.in | 2 +-
|
|
|
a1079a3 |
include/netlink/object.h | 2 +-
|
|
|
a1079a3 |
lib/object.c | 2 +-
|
|
|
a1079a3 |
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
a1079a3 |
|
|
|
a1079a3 |
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in
|
|
|
a1079a3 |
index 0c518b7..396fcbc 100644
|
|
|
a1079a3 |
--- a/doc/Doxyfile.in
|
|
|
a1079a3 |
+++ b/doc/Doxyfile.in
|
|
|
a1079a3 |
@@ -113,7 +113,7 @@ FULL_PATH_NAMES = YES
|
|
|
a1079a3 |
# If left blank the directory from which doxygen is run is used as the
|
|
|
a1079a3 |
# path to strip.
|
|
|
a1079a3 |
|
|
|
a1079a3 |
-STRIP_FROM_PATH =
|
|
|
a1079a3 |
+STRIP_FROM_PATH = /home/pjones/build/BUILD/libnl-1.1
|
|
|
a1079a3 |
|
|
|
a1079a3 |
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
|
|
|
a1079a3 |
# the path mentioned in the documentation of a class, which tells
|
|
|
a1079a3 |
diff --git a/include/netlink/object.h b/include/netlink/object.h
|
|
|
a1079a3 |
index 751a1b3..241a2ad 100644
|
|
|
a1079a3 |
--- a/include/netlink/object.h
|
|
|
a1079a3 |
+++ b/include/netlink/object.h
|
|
|
a1079a3 |
@@ -55,7 +55,7 @@ extern int nl_object_is_marked(struct nl_object *);
|
|
|
a1079a3 |
/* Access Functions */
|
|
|
a1079a3 |
extern int nl_object_get_refcnt(struct nl_object *);
|
|
|
a1079a3 |
extern struct nl_cache * nl_object_get_cache(struct nl_object *);
|
|
|
a1079a3 |
-extern inline void * nl_object_priv(struct nl_object *);
|
|
|
a1079a3 |
+extern void * nl_object_priv(struct nl_object *);
|
|
|
a1079a3 |
|
|
|
a1079a3 |
#ifdef __cplusplus
|
|
|
a1079a3 |
}
|
|
|
a1079a3 |
diff --git a/lib/object.c b/lib/object.c
|
|
|
a1079a3 |
index 74f6e2d..845ca1d 100644
|
|
|
a1079a3 |
--- a/lib/object.c
|
|
|
a1079a3 |
+++ b/lib/object.c
|
|
|
a1079a3 |
@@ -376,7 +376,7 @@ struct nl_cache *nl_object_get_cache(struct nl_object *obj)
|
|
|
a1079a3 |
return obj->ce_cache;
|
|
|
a1079a3 |
}
|
|
|
a1079a3 |
|
|
|
a1079a3 |
-inline void *nl_object_priv(struct nl_object *obj)
|
|
|
a1079a3 |
+void *nl_object_priv(struct nl_object *obj)
|
|
|
a1079a3 |
{
|
|
|
a1079a3 |
return obj;
|
|
|
a1079a3 |
}
|
|
|
a1079a3 |
--
|
|
|
a1079a3 |
1.6.2.2
|
|
|
a1079a3 |
|