[PATCH 2/7] libmultipath: Declare more functions 'static'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx>
---
 libmultipath/waiter.c | 8 ++++----
 libmultipath/waiter.h | 4 ----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/libmultipath/waiter.c b/libmultipath/waiter.c
index 06995b6..4079b13 100644
--- a/libmultipath/waiter.c
+++ b/libmultipath/waiter.c
@@ -24,7 +24,7 @@
 
 pthread_attr_t waiter_attr;
 
-struct event_thread *alloc_waiter (void)
+static struct event_thread *alloc_waiter (void)
 {
 
 	struct event_thread *wp;
@@ -35,7 +35,7 @@ struct event_thread *alloc_waiter (void)
 	return wp;
 }
 
-void free_waiter (void *data)
+static void free_waiter (void *data)
 {
 	struct event_thread *wp = (struct event_thread *)data;
 
@@ -67,7 +67,7 @@ void stop_waiter_thread (struct multipath *mpp, struct vectors *vecs)
  * returns the reschedule delay
  * negative means *stop*
  */
-int waiteventloop (struct event_thread *waiter)
+static int waiteventloop (struct event_thread *waiter)
 {
 	sigset_t set, oldset;
 	int event_nr;
@@ -159,7 +159,7 @@ int waiteventloop (struct event_thread *waiter)
 	return -1; /* never reach there */
 }
 
-void *waitevent (void *et)
+static void *waitevent (void *et)
 {
 	int r;
 	struct event_thread *waiter;
diff --git a/libmultipath/waiter.h b/libmultipath/waiter.h
index a1f57fb..0cfae46 100644
--- a/libmultipath/waiter.h
+++ b/libmultipath/waiter.h
@@ -11,11 +11,7 @@ struct event_thread {
 	struct vectors *vecs;
 };
 
-struct event_thread * alloc_waiter (void);
-void free_waiter (void *data);
 void stop_waiter_thread (struct multipath *mpp, struct vectors *vecs);
 int start_waiter_thread (struct multipath *mpp, struct vectors *vecs);
-int waiteventloop (struct event_thread *waiter);
-void *waitevent (void *et);
 
 #endif /* _WAITER_H */
-- 
2.9.2

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux