aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-01-10 19:26:20 +0000
committerBill Nottingham <notting@redhat.com>2008-01-10 19:26:20 +0000
commit8a5a8df51e533ac5e3155fb55f35beb61db92ccb (patch)
tree38265a324ffa62d059d12691ca48d6eadb1bdeb2 /src
parent77f4e608b7439c405d640783704cecd288b01d01 (diff)
downloadinitscripts-8a5a8df51e533ac5e3155fb55f35beb61db92ccb.tar
initscripts-8a5a8df51e533ac5e3155fb55f35beb61db92ccb.tar.gz
initscripts-8a5a8df51e533ac5e3155fb55f35beb61db92ccb.tar.bz2
initscripts-8a5a8df51e533ac5e3155fb55f35beb61db92ccb.tar.xz
initscripts-8a5a8df51e533ac5e3155fb55f35beb61db92ccb.zip
fix genhostid on x86_64 (#306811)
Diffstat (limited to 'src')
-rw-r--r--src/genhostid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genhostid.c b/src/genhostid.c
index a56cad83..c3a169db 100644
--- a/src/genhostid.c
+++ b/src/genhostid.c
@@ -28,5 +28,5 @@ main (void)
srand48 ((long int) time (NULL) ^ (long int) getpid ());
n = lrand48 ();
}
- return sethostid (n);
+ return sethostid ((int32_t)n);
}