[sheepdog] [PATCH] sheep: Remove the duplicated code line
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Mon Mar 16 07:33:45 CET 2015
At Fri, 13 Mar 2015 11:49:08 -0700,
Roy Yang wrote:
>
> Remove the duplicated code line in lib/net.c
>
> Signed-off-by: Roy Yang <bsdnet at outlook.com>
> ---
> lib/net.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
Applied, thanks.
Hitoshi
>
> diff --git a/lib/net.c b/lib/net.c
> index 5b34a1c..6e84937 100644
> --- a/lib/net.c
> +++ b/lib/net.c
> @@ -519,7 +519,6 @@ int get_local_addr(uint8_t *bytes)
> sin = (struct sockaddr_in *)ifa->ifa_addr;
> memset(bytes, 0, 12);
> memcpy(bytes + 12, &sin->sin_addr, 4);
> - memcpy(bytes + 12, &sin->sin_addr, 4);
> sd_notice("found IPv4 address");
> goto out;
> case AF_INET6:
> --
> 1.7.2.3
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list