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: <1370140803.2086.0.camel@joe-AO722>
Date:	Sat, 01 Jun 2013 19:40:03 -0700
From:	Joe Perches <joe@...ches.com>
To:	Jean Sacren <sakiwit@...il.com>
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/3] net: do not manually initialize enumerators

On Sat, 2013-06-01 at 20:23 -0600, Jean Sacren wrote:
> Clean up unnecessary initialization of enumerators as the compiler takes
> care of that.
[]
> diff --git a/include/linux/net.h b/include/linux/net.h
[]
>  enum sock_shutdown_cmd {
> -	SHUT_RD		= 0,
> -	SHUT_WR		= 1,
> -	SHUT_RDWR	= 2,
> +	SHUT_RD,
> +	SHUT_WR,
> +	SHUT_RDWR,
>  };

The compiler may do the same thing,
but specificity is good.


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ