summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2010-06-14 13:03:25 +0000
committeruqs <uqs@FreeBSD.org>2010-06-14 13:03:25 +0000
commitda0290f8d3606ed387adb04fec5d24de81a39032 (patch)
treedc16bd17543aa53d85a4fefebff6e85988476445 /games
parent6586564ab79e4eea8e794175c8a3f48a7f34d36d (diff)
downloadFreeBSD-src-da0290f8d3606ed387adb04fec5d24de81a39032.zip
FreeBSD-src-da0290f8d3606ed387adb04fec5d24de81a39032.tar.gz
random(6): avoid dead assignments
Found by: clang static analyzer
Diffstat (limited to 'games')
-rw-r--r--games/random/random.c2
-rw-r--r--games/random/randomize_fd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/games/random/random.c b/games/random/random.c
index 4ec36c6..99f9d90 100644
--- a/games/random/random.c
+++ b/games/random/random.c
@@ -73,7 +73,7 @@ main(int argc, char *argv[])
denom = 0;
filename = "/dev/fd/0";
random_type = RANDOM_TYPE_UNSET;
- random_exit = randomize_lines = random_type = unbuffer_output = 0;
+ random_exit = randomize_lines = unbuffer_output = 0;
unique_output = 1;
(void)setlocale(LC_CTYPE, "");
diff --git a/games/random/randomize_fd.c b/games/random/randomize_fd.c
index 94881f7..da41769 100644
--- a/games/random/randomize_fd.c
+++ b/games/random/randomize_fd.c
@@ -104,7 +104,7 @@ randomize_fd(int fd, int type, int unique, double denom)
rand_root = rand_tail = NULL;
bufc = i = 0;
- bufleft = eof = fndstr = numnode = ret = 0;
+ bufleft = eof = fndstr = numnode = 0;
if (type == RANDOM_TYPE_UNSET)
type = RANDOM_TYPE_LINES;
OpenPOWER on IntegriCloud