summaryrefslogtreecommitdiffstats
path: root/games/random/randomize_fd.h
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2003-02-15 10:26:10 +0000
committerseanc <seanc@FreeBSD.org>2003-02-15 10:26:10 +0000
commitcb6083f9802291b208d0d70b2a356afb604bf3cf (patch)
tree3395f1c1eccf05868f2a82e467d2be10be8aeb18 /games/random/randomize_fd.h
parentc831929bbba4418d3580388349f25f7f5edebe49 (diff)
downloadFreeBSD-src-cb6083f9802291b208d0d70b2a356afb604bf3cf.zip
FreeBSD-src-cb6083f9802291b208d0d70b2a356afb604bf3cf.tar.gz
flexlint rears its head as well as some style(9) fixes[1]. Fixed a
few bugs for a few corner cases and correctly handle the case where read(2) is read()'ing from a non-file descriptor and could get fewer bytes back than the buffer, but it isn't EOF[2]. random(6) extensively tested and believed to be bug free (save performance for large files). Submitted by: mkm [1], tjr[2]
Diffstat (limited to 'games/random/randomize_fd.h')
-rw-r--r--games/random/randomize_fd.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/games/random/randomize_fd.h b/games/random/randomize_fd.h
index f3e99a8..5b50e62 100644
--- a/games/random/randomize_fd.h
+++ b/games/random/randomize_fd.h
@@ -29,17 +29,6 @@
#ifndef __RANDOMIZE_FD__
#define __RANDOMIZE_FD__
-#include <ctype.h>
-#include <err.h>
-#include <errno.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/uio.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
#define RANDOM_TYPE_UNSET 0
#define RANDOM_TYPE_LINES 1
#define RANDOM_TYPE_WORDS 2
OpenPOWER on IntegriCloud