diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2002-11-14 19:55:00 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2002-11-14 19:55:00 +0000 |
commit | 6c13074a858567ea4eb14b43646eeaaa7113c3d1 (patch) | |
tree | 4050a30dcc27b1ce2beebe1f8424f967ded58c6c /misc | |
parent | 7ecbc6dc86f332eb160bbb6b885ec8e30e74dbdb (diff) | |
download | libapr-6c13074a858567ea4eb14b43646eeaaa7113c3d1.tar.gz |
- define DEV_RANDOM as a string literal so it doesn't have to be
converted into one later.
- remove DEV_RANDOM from acconfig.h
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64029 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r-- | misc/unix/rand.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/misc/unix/rand.c b/misc/unix/rand.c index b44a3f964..3ecb37263 100644 --- a/misc/unix/rand.c +++ b/misc/unix/rand.c @@ -76,10 +76,6 @@ #if APR_HAS_RANDOM -/* This tells the preprocessor to put quotes around the value. */ -#define XSTR(x) #x -#define STR(x) XSTR(x) - APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char *buf, int length) { @@ -88,7 +84,7 @@ APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char *buf, int rnd, rc; apr_size_t got, tot; - if ((rnd = open(STR(DEV_RANDOM), O_RDONLY)) == -1) + if ((rnd = open(DEV_RANDOM, O_RDONLY)) == -1) return errno; for (tot=0; tot<length; tot += got) { |