summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-12 18:09:08 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-01-09 15:09:28 -0500
commit826b79878d72684b3b6d4a4c9f22d82f24489a0d (patch)
treed23ad87f5acb437408feec05ddeb1a8dc8e05edd /src/libudev
parent01766c1a8ed1342d4b924bc58b7326d286621635 (diff)
udev: declare some symbols static
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/libudev-list.c4
-rw-r--r--src/libudev/libudev-private.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/libudev/libudev-list.c b/src/libudev/libudev-list.c
index 59ba69e279..1cf53b074f 100644
--- a/src/libudev/libudev-list.c
+++ b/src/libudev/libudev-list.c
@@ -102,7 +102,7 @@ void udev_list_init(struct udev *udev, struct udev_list *list, bool unique)
}
/* insert entry into a list as the last element */
-void udev_list_entry_append(struct udev_list_entry *new, struct udev_list *list)
+static void udev_list_entry_append(struct udev_list_entry *new, struct udev_list *list)
{
/* inserting before the list head make the node the last node in the list */
udev_list_node_insert_between(&new->node, list->node.prev, &list->node);
@@ -110,7 +110,7 @@ void udev_list_entry_append(struct udev_list_entry *new, struct udev_list *list)
}
/* insert entry into a list, before a given existing entry */
-void udev_list_entry_insert_before(struct udev_list_entry *new, struct udev_list_entry *entry)
+static void udev_list_entry_insert_before(struct udev_list_entry *new, struct udev_list_entry *entry)
{
udev_list_node_insert_between(&new->node, entry->node.prev, &entry->node);
new->list = entry->list;
diff --git a/src/libudev/libudev-private.h b/src/libudev/libudev-private.h
index 18bc853a5a..f9d4bf62ce 100644
--- a/src/libudev/libudev-private.h
+++ b/src/libudev/libudev-private.h
@@ -129,8 +129,6 @@ void udev_list_cleanup(struct udev_list *list);
struct udev_list_entry *udev_list_get_entry(struct udev_list *list);
struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *name, const char *value);
void udev_list_entry_delete(struct udev_list_entry *entry);
-void udev_list_entry_insert_before(struct udev_list_entry *new, struct udev_list_entry *entry);
-void udev_list_entry_append(struct udev_list_entry *new, struct udev_list *list);
int udev_list_entry_get_num(struct udev_list_entry *list_entry);
void udev_list_entry_set_num(struct udev_list_entry *list_entry, int num);
#define udev_list_entry_foreach_safe(entry, tmp, first) \