dovecot-2.2: lib: two quite literally random little cleanups

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 27 13:22:47 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/60fbbf7ea75d
changeset: 17529:60fbbf7ea75d
user:      Phil Carmody <phil at dovecot.fi>
date:      Fri Jun 27 16:13:37 2014 +0300
description:
lib: two quite literally random little cleanups
file-dotlock.c does not use randgen.h, remove the #include
test-buffer.c random() has been used rather than rand()

Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/lib/file-dotlock.c |  1 -
 src/lib/test-buffer.c  |  2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 06f90ecbfb70 -r 60fbbf7ea75d src/lib/file-dotlock.c
--- a/src/lib/file-dotlock.c	Fri Jun 27 16:13:09 2014 +0300
+++ b/src/lib/file-dotlock.c	Fri Jun 27 16:13:37 2014 +0300
@@ -5,7 +5,6 @@
 #include "str.h"
 #include "hex-binary.h"
 #include "hostpid.h"
-#include "randgen.h"
 #include "eacces-error.h"
 #include "write-full.h"
 #include "safe-mkstemp.h"
diff -r 06f90ecbfb70 -r 60fbbf7ea75d src/lib/test-buffer.c
--- a/src/lib/test-buffer.c	Fri Jun 27 16:13:09 2014 +0300
+++ b/src/lib/test-buffer.c	Fri Jun 27 16:13:37 2014 +0300
@@ -18,7 +18,7 @@
 
 	buf = buffer_create_dynamic(default_pool, 1);
 	for (i = 0; i < BUF_TEST_SIZE; i++)
-		testdata[i] = random();
+		testdata[i] = rand();
 	memset(shadowbuf, 0, sizeof(shadowbuf));
 
 	srand(1);


More information about the dovecot-cvs mailing list