lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SN6PR2101MB16931A789DA8673E9607F761D7729@SN6PR2101MB1693.namprd21.prod.outlook.com>
Date:   Thu, 25 Aug 2022 17:14:55 +0000
From:   "Michael Kelley (LINUX)" <mikelley@...rosoft.com>
To:     Zhou jie <zhoujie@...china.com>, KY Srinivasan <kys@...rosoft.com>,
        Haiyang Zhang <haiyangz@...rosoft.com>,
        Stephen Hemminger <sthemmin@...rosoft.com>,
        "wei.liu@...nel.org" <wei.liu@...nel.org>,
        Dexuan Cui <decui@...rosoft.com>
CC:     "linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] hv/hv_kvp_daemon: remove unnecessary (void*) conversions

From: Zhou jie <zhoujie@...china.com> Sent: Monday, August 22, 2022 8:46 PM
> 
> remove unnecessary void* type casting.
> 
> Signed-off-by: Zhou jie <zhoujie@...china.com>
> ---
>  tools/hv/hv_kvp_daemon.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
> index 1e6fd6ca513b..445abb53bf0d 100644
> --- a/tools/hv/hv_kvp_daemon.c
> +++ b/tools/hv/hv_kvp_daemon.c
> @@ -772,11 +772,11 @@ static int kvp_process_ip_address(void *addrp,
>  	const char *str;
> 
>  	if (family == AF_INET) {
> -		addr = (struct sockaddr_in *)addrp;
> +		addr = addrp;
>  		str = inet_ntop(family, &addr->sin_addr, tmp, 50);
>  		addr_length = INET_ADDRSTRLEN;
>  	} else {
> -		addr6 = (struct sockaddr_in6 *)addrp;
> +		addr6 = addrp;
>  		str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50);
>  		addr_length = INET6_ADDRSTRLEN;
>  	}
> --
> 2.18.2

The patch subject prefix for changes to this module is usually "tools: hv:"
or "tools: hv: kvp:" and this patch should be consistent.  Check the commit
log for tools/hv/hv_kvp_daemon.c for historical examples.

Modulo this tweak,

Reviewed-by: Michael Kelley <mikelley@...rosoft.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ