[PATCH BlueZ v4 4/8] error: Make errno to string helpers private

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

 



We're not using them outside the error code itself.
---
 src/error.c | 4 ++--
 src/error.h | 3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/error.c b/src/error.c
index 0e57a07548a9..74b8f80e63c5 100644
--- a/src/error.c
+++ b/src/error.c
@@ -134,7 +134,7 @@ DBusMessage *btd_error_failed(DBusMessage *msg, const char *str)
 					".Failed", "%s", str);
 }
 
-const char *btd_error_str_bredr_conn_from_errno(int errno_code)
+static const char *btd_error_str_bredr_conn_from_errno(int errno_code)
 {
 	switch (-errno_code) {
 	case EALREADY:
@@ -178,7 +178,7 @@ const char *btd_error_str_bredr_conn_from_errno(int errno_code)
 	}
 }
 
-const char *btd_error_str_le_conn_from_errno(int errno_code)
+static const char *btd_error_str_le_conn_from_errno(int errno_code)
 {
 	switch (-errno_code) {
 	case EINVAL:
diff --git a/src/error.h b/src/error.h
index 828cf5923f6f..0fa3975cff7c 100644
--- a/src/error.h
+++ b/src/error.h
@@ -88,6 +88,3 @@ DBusMessage *btd_error_not_ready_str(DBusMessage *msg, const char *str);
 DBusMessage *btd_error_failed(DBusMessage *msg, const char *str);
 DBusMessage *btd_error_bredr_conn_from_errno(DBusMessage *msg, int errno_code);
 DBusMessage *btd_error_le_conn_from_errno(DBusMessage *msg, int errno_code);
-
-const char *btd_error_str_bredr_conn_from_errno(int errno_code);
-const char *btd_error_str_le_conn_from_errno(int errno_code);
-- 
2.50.0





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux