[PATCH 09/11] libmultipath: remove recv_packet_from_client()

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

 



From: Martin Wilck <mwilck@xxxxxxxx>

This function became unused after the late uxlsnr patches.

Signed-off-by: Martin Wilck <mwilck@xxxxxxxx>
---
 libmultipath/libmultipath.version | 1 -
 libmultipath/uxsock.c             | 5 -----
 libmultipath/uxsock.h             | 6 ------
 3 files changed, 12 deletions(-)

diff --git a/libmultipath/libmultipath.version b/libmultipath/libmultipath.version
index a693933..941bd8f 100644
--- a/libmultipath/libmultipath.version
+++ b/libmultipath/libmultipath.version
@@ -140,7 +140,6 @@ global:
 	_print_multipath_topology;
 	pthread_cond_init_mono;
 	recv_packet;
-	recv_packet_from_client;
 	reinstate_paths;
 	remember_wwid;
 	remove_map;
diff --git a/libmultipath/uxsock.c b/libmultipath/uxsock.c
index 0ccd1fa..2135476 100644
--- a/libmultipath/uxsock.c
+++ b/libmultipath/uxsock.c
@@ -128,8 +128,3 @@ int recv_packet(int fd, char **buf, unsigned int timeout)
 {
 	return _recv_packet(fd, buf, timeout, 0 /* no limit */);
 }
-
-int recv_packet_from_client(int fd, char **buf, unsigned int timeout)
-{
-	return _recv_packet(fd, buf, timeout, _MAX_CMD_LEN);
-}
diff --git a/libmultipath/uxsock.h b/libmultipath/uxsock.h
index 8e7401d..e3d28cf 100644
--- a/libmultipath/uxsock.h
+++ b/libmultipath/uxsock.h
@@ -5,9 +5,3 @@ int recv_packet(int fd, char **buf, unsigned int timeout);
 
 #define _MAX_CMD_LEN		512
 
-/*
- * Used for receiving socket command from untrusted socket client where data
- * size is restricted to 512(_MAX_CMD_LEN) at most.
- * Return -EINVAL if data length requested by client exceeded the _MAX_CMD_LEN.
- */
-int recv_packet_from_client(int fd, char **buf, unsigned int timeout);
-- 
2.34.0


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://listman.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