diff options
author | Nate Straz <nstraz@redhat.com> | 2006-08-08 16:28:59 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:46 -0400 |
commit | 4464bbb265280cd2bd015a662b76a316c228cc28 (patch) | |
tree | 708511c016a74824c38120e16c57416ed8a7d7c5 | |
parent | e883a32f32f06aa76785a006c5d04338776128a4 (diff) | |
download | qarsh-4464bbb265280cd2bd015a662b76a316c228cc28.tar.gz qarsh-4464bbb265280cd2bd015a662b76a316c228cc28.tar.xz qarsh-4464bbb265280cd2bd015a662b76a316c228cc28.zip |
Force the cookie parts to be 32 bits to make Dean happy.
-rw-r--r-- | btime.c | 4 | ||||
-rw-r--r-- | btime_int.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -168,8 +168,8 @@ static void gen_cookie(char *s) *a++ = 'B'; *a++ = 'T'; for (i = 0; i < COOKIE_RANDOM_PARTS; i++) { - *(int *)a = random(); - a += sizeof(int); + *(int32_t *)a = (int32_t)random(); + a += sizeof(int32_t); } *a = '\n'; } diff --git a/btime_int.h b/btime_int.h index 73adaa4..38f043f 100644 --- a/btime_int.h +++ b/btime_int.h @@ -10,5 +10,5 @@ #define MAX_RETRY 5 #define COOKIE_RANDOM_PARTS 4 -#define COOKIE_LEN (3 + (COOKIE_RANDOM_PARTS * sizeof(int))) +#define COOKIE_LEN (3 + (COOKIE_RANDOM_PARTS * sizeof(int32_t))) #endif /* __BTIME_INT_H */ |