---
 raw.c  | 4 ++--
 udp.c  | 4 ++--
 udp6.c | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/raw.c b/raw.c
index a76fab6..f73e895 100644
--- a/raw.c
+++ b/raw.c
@@ -193,8 +193,8 @@ static int raw_configure(int fd, int event, int index,
 
 static int raw_close(struct transport *t, struct fdarray *fda)
 {
-       close(fda->fd[0]);
-       close(fda->fd[1]);
+       close(fda->fd[FD_EVENT]);
+       close(fda->fd[FD_GENERAL]);
        return 0;
 }
 
diff --git a/udp.c b/udp.c
index 7c9402e..b9ef777 100644
--- a/udp.c
+++ b/udp.c
@@ -85,8 +85,8 @@ static int mcast_join(int fd, int index, const struct 
sockaddr_in *sa)
 
 static int udp_close(struct transport *t, struct fdarray *fda)
 {
-       close(fda->fd[0]);
-       close(fda->fd[1]);
+       close(fda->fd[FD_EVENT]);
+       close(fda->fd[FD_GENERAL]);
        return 0;
 }
 
diff --git a/udp6.c b/udp6.c
index bde1710..bdb96c9 100644
--- a/udp6.c
+++ b/udp6.c
@@ -96,8 +96,8 @@ static int mc_join(int fd, int index, const struct 
sockaddr_in6 *sa)
 
 static int udp6_close(struct transport *t, struct fdarray *fda)
 {
-       close(fda->fd[0]);
-       close(fda->fd[1]);
+       close(fda->fd[FD_EVENT]);
+       close(fda->fd[FD_GENERAL]);
        return 0;
 }
 
-- 
2.40.0



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to