summaryrefslogtreecommitdiffstats
path: root/games/random/randomize_fd.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2008-08-10 11:31:56 +0000
committerache <ache@FreeBSD.org>2008-08-10 11:31:56 +0000
commit7b638af8acb02ec4fb6007a3c7959c076391077f (patch)
tree8a1d648a35d6dda07127031504887ace9b1b8231 /games/random/randomize_fd.h
parent996d7f2ebc0cc8300f9e529343bab86cdee4c554 (diff)
downloadFreeBSD-src-7b638af8acb02ec4fb6007a3c7959c076391077f.zip
FreeBSD-src-7b638af8acb02ec4fb6007a3c7959c076391077f.tar.gz
All cosmetic.
1) Rename RANDOM_MAX to RANDOM_MAX_PLUS1 to not confuse with random()'s max 2) Use calloc() instead of zeroing fields explicitly 3) "too many lines" -> "too many delimiters" for err()
Diffstat (limited to 'games/random/randomize_fd.h')
-rw-r--r--games/random/randomize_fd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/random/randomize_fd.h b/games/random/randomize_fd.h
index 6f9fac2..de3f873 100644
--- a/games/random/randomize_fd.h
+++ b/games/random/randomize_fd.h
@@ -33,7 +33,7 @@
* The random() function is defined to return values between 0 and
* 2^31 - 1 inclusive in random(3).
*/
-#define RANDOM_MAX 0x80000000UL
+#define RANDOM_MAX_PLUS1 0x80000000UL
#define RANDOM_TYPE_UNSET 0
#define RANDOM_TYPE_LINES 1
OpenPOWER on IntegriCloud