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