From 388e8f3a022ae18dabffacda1afcf74c33a8a96f Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 11 Apr 2012 21:09:24 +0000 Subject: Recommend using "unsigned int" instead of just "unsigned". ok deraadt@, tweaks from jmc@ and todd@ --- share/man/man9/style.9 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 97a3aa357a5..b0fd5628fa2 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -22,9 +22,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: style.9,v 1.52 2012/04/08 17:36:21 jmc Exp $ +.\" $OpenBSD: style.9,v 1.53 2012/04/11 21:09:23 ratchov Exp $ .\" -.Dd $Mdocdate: April 8 2012 $ +.Dd $Mdocdate: April 11 2012 $ .Dt STYLE 9 .Os .Sh NAME @@ -187,6 +187,12 @@ Enumeration values are all uppercase. enum enumtype { ONE, TWO } et; .Ed .Pp +When defining unsigned integers use +.Dq "unsigned int" +rather than just +.Dq "unsigned" ; +the latter has been a source of confusion in the past. +.Pp When declaring variables in structures, declare them sorted by use, then by size (largest to smallest), then by alphabetical order. The first category normally doesn't apply, but there are exceptions. -- cgit v1.2.3