|
|
ba9f1f |
From 0452c1c7a5f5f27aebefcc2816f3781c7bbb55e2 Mon Sep 17 00:00:00 2001
|
|
|
ba9f1f |
From: Mohammed Gamal <mgamal@redhat.com>
|
|
|
ba9f1f |
Date: Thu, 17 Nov 2022 18:58:31 +0100
|
|
|
ba9f1f |
Subject: [PATCH 3/3] tools: hv: kvp: remove unnecessary (void*) conversions
|
|
|
ba9f1f |
|
|
|
ba9f1f |
RH-Author: Mohamed Gamal Morsy <mmorsy@redhat.com>
|
|
|
ba9f1f |
RH-MergeRequest: 5: Update hyperv-daemons for RHEL-8.8
|
|
|
ba9f1f |
RH-Bugzilla: 2139456
|
|
|
ba9f1f |
RH-Acked-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
ba9f1f |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ba9f1f |
RH-Commit: [2/2] 739e447d4cff82f47cb60a14d8bd87ca3601a59b
|
|
|
ba9f1f |
|
|
|
ba9f1f |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2139456
|
|
|
ba9f1f |
|
|
|
ba9f1f |
commit 2258954234db7530e9d86bb32cd6ad54485ff926
|
|
|
ba9f1f |
Author: Zhou jie <zhoujie@nfschina.com>
|
|
|
ba9f1f |
Date: Tue Aug 23 11:45:52 2022 +0800
|
|
|
ba9f1f |
|
|
|
ba9f1f |
tools: hv: kvp: remove unnecessary (void*) conversions
|
|
|
ba9f1f |
|
|
|
ba9f1f |
Remove unnecessary void* type casting.
|
|
|
ba9f1f |
|
|
|
ba9f1f |
Signed-off-by: Zhou jie <zhoujie@nfschina.com>
|
|
|
ba9f1f |
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
|
|
|
ba9f1f |
Link: https://lore.kernel.org/r/20220823034552.8596-1-zhoujie@nfschina.com
|
|
|
ba9f1f |
Signed-off-by: Wei Liu <wei.liu@kernel.org>
|
|
|
ba9f1f |
|
|
|
ba9f1f |
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
|
|
|
ba9f1f |
---
|
|
|
ba9f1f |
hv_kvp_daemon.c | 4 ++--
|
|
|
ba9f1f |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
ba9f1f |
|
|
|
ba9f1f |
diff --git a/hv_kvp_daemon.c b/hv_kvp_daemon.c
|
|
|
ba9f1f |
index c97c12e..27f5e7d 100644
|
|
|
ba9f1f |
--- a/hv_kvp_daemon.c
|
|
|
ba9f1f |
+++ b/hv_kvp_daemon.c
|
|
|
ba9f1f |
@@ -772,11 +772,11 @@ static int kvp_process_ip_address(void *addrp,
|
|
|
ba9f1f |
const char *str;
|
|
|
ba9f1f |
|
|
|
ba9f1f |
if (family == AF_INET) {
|
|
|
ba9f1f |
- addr = (struct sockaddr_in *)addrp;
|
|
|
ba9f1f |
+ addr = addrp;
|
|
|
ba9f1f |
str = inet_ntop(family, &addr->sin_addr, tmp, 50);
|
|
|
ba9f1f |
addr_length = INET_ADDRSTRLEN;
|
|
|
ba9f1f |
} else {
|
|
|
ba9f1f |
- addr6 = (struct sockaddr_in6 *)addrp;
|
|
|
ba9f1f |
+ addr6 = addrp;
|
|
|
ba9f1f |
str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50);
|
|
|
ba9f1f |
addr_length = INET6_ADDRSTRLEN;
|
|
|
ba9f1f |
}
|
|
|
ba9f1f |
--
|
|
|
ba9f1f |
2.37.3
|
|
|
ba9f1f |
|