summaryrefslogtreecommitdiffstats
path: root/btime.c
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2006-08-08 16:28:59 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:46 -0400
commit4464bbb265280cd2bd015a662b76a316c228cc28 (patch)
tree708511c016a74824c38120e16c57416ed8a7d7c5 /btime.c
parente883a32f32f06aa76785a006c5d04338776128a4 (diff)
downloadqarsh-4464bbb265280cd2bd015a662b76a316c228cc28.zip
qarsh-4464bbb265280cd2bd015a662b76a316c228cc28.tar.gz
qarsh-4464bbb265280cd2bd015a662b76a316c228cc28.tar.xz
Force the cookie parts to be 32 bits to make Dean happy.
Diffstat (limited to 'btime.c')
-rw-r--r--btime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btime.c b/btime.c
index 5e151be..9deca7d 100644
--- a/btime.c
+++ b/btime.c
@@ -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';
}