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 /btime.c | |
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.
Diffstat (limited to 'btime.c')
-rw-r--r-- | btime.c | 4 |
1 files changed, 2 insertions, 2 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'; } |