diff options
author | seanc <seanc@FreeBSD.org> | 2003-02-15 10:26:10 +0000 |
---|---|---|
committer | seanc <seanc@FreeBSD.org> | 2003-02-15 10:26:10 +0000 |
commit | cb6083f9802291b208d0d70b2a356afb604bf3cf (patch) | |
tree | 3395f1c1eccf05868f2a82e467d2be10be8aeb18 /games/random/randomize_fd.h | |
parent | c831929bbba4418d3580388349f25f7f5edebe49 (diff) | |
download | FreeBSD-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.h | 11 |
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 |