summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-13 03:34:24 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-01-09 15:11:03 -0500
commitad1d147331b8461e021978243a0c50dfe8e8e3e2 (patch)
tree8a45b325683e5d1ccb62ce61d406cbef8a2c54bc /src/udev
parent826b79878d72684b3b6d4a4c9f22d82f24489a0d (diff)
udev: declare some symbols static
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-ctrl.c10
-rw-r--r--src/udev/udev.h2
2 files changed, 1 insertions, 11 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c
index 5a328f2349..f273fb1510 100644
--- a/src/udev/udev-ctrl.c
+++ b/src/udev/udev-ctrl.c
@@ -141,7 +141,7 @@ struct udev *udev_ctrl_get_udev(struct udev_ctrl *uctrl)
return uctrl->udev;
}
-struct udev_ctrl *udev_ctrl_ref(struct udev_ctrl *uctrl)
+static struct udev_ctrl *udev_ctrl_ref(struct udev_ctrl *uctrl)
{
if (uctrl == NULL)
return NULL;
@@ -437,14 +437,6 @@ err:
return NULL;
}
-struct udev_ctrl_msg *udev_ctrl_msg_ref(struct udev_ctrl_msg *ctrl_msg)
-{
- if (ctrl_msg == NULL)
- return NULL;
- ctrl_msg->refcount++;
- return ctrl_msg;
-}
-
struct udev_ctrl_msg *udev_ctrl_msg_unref(struct udev_ctrl_msg *ctrl_msg)
{
if (ctrl_msg == NULL)
diff --git a/src/udev/udev.h b/src/udev/udev.h
index f2145d7a5b..760b678682 100644
--- a/src/udev/udev.h
+++ b/src/udev/udev.h
@@ -104,7 +104,6 @@ struct udev_ctrl;
struct udev_ctrl *udev_ctrl_new(struct udev *udev);
struct udev_ctrl *udev_ctrl_new_from_fd(struct udev *udev, int fd);
int udev_ctrl_enable_receiving(struct udev_ctrl *uctrl);
-struct udev_ctrl *udev_ctrl_ref(struct udev_ctrl *uctrl);
struct udev_ctrl *udev_ctrl_unref(struct udev_ctrl *uctrl);
int udev_ctrl_cleanup(struct udev_ctrl *uctrl);
struct udev *udev_ctrl_get_udev(struct udev_ctrl *uctrl);
@@ -123,7 +122,6 @@ struct udev_ctrl_connection *udev_ctrl_connection_ref(struct udev_ctrl_connectio
struct udev_ctrl_connection *udev_ctrl_connection_unref(struct udev_ctrl_connection *conn);
struct udev_ctrl_msg;
struct udev_ctrl_msg *udev_ctrl_receive_msg(struct udev_ctrl_connection *conn);
-struct udev_ctrl_msg *udev_ctrl_msg_ref(struct udev_ctrl_msg *ctrl_msg);
struct udev_ctrl_msg *udev_ctrl_msg_unref(struct udev_ctrl_msg *ctrl_msg);
int udev_ctrl_get_set_log_level(struct udev_ctrl_msg *ctrl_msg);
int udev_ctrl_get_stop_exec_queue(struct udev_ctrl_msg *ctrl_msg);