[systemd-commits] src/libudev src/udev

Kay Sievers kay at kemper.freedesktop.org
Tue Nov 12 09:10:20 PST 2013


 src/libudev/libudev-list.c    |    4 ++--
 src/libudev/libudev-private.h |    2 --
 src/udev/udevd.c              |    2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)

New commits:
commit e3dc56a21907d5c028e11bfb750447614e0ed900
Author: Kay Sievers <kay at vrfy.org>
Date:   Tue Nov 12 18:09:08 2013 +0100

    udev: declare some symbols static

diff --git a/src/libudev/libudev-list.c b/src/libudev/libudev-list.c
index 59ba69e..1cf53b0 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 18bc853..f9d4bf6 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) \
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 559d33e..572bca8 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -75,7 +75,7 @@ static int exec_delay;
 static sigset_t sigmask_orig;
 static UDEV_LIST(event_list);
 static UDEV_LIST(worker_list);
-char *udev_cgroup;
+static char *udev_cgroup;
 static bool udev_exit;
 
 enum event_state {



More information about the systemd-commits mailing list