aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-01-10 18:50:46 +0000
committerBill Nottingham <notting@redhat.com>2008-01-10 18:50:46 +0000
commitb72f2038928b3834f22602e1cdee5939ca72568f (patch)
tree29088886c8162c31fd1f44f3e18560e63a0c12ff
parenta223d19546daa0433d47065316e1c79500b088d8 (diff)
downloadinitscripts-b72f2038928b3834f22602e1cdee5939ca72568f.tar
initscripts-b72f2038928b3834f22602e1cdee5939ca72568f.tar.gz
initscripts-b72f2038928b3834f22602e1cdee5939ca72568f.tar.bz2
initscripts-b72f2038928b3834f22602e1cdee5939ca72568f.tar.xz
initscripts-b72f2038928b3834f22602e1cdee5939ca72568f.zip
Fix genhostid for x86_64 (#311611)
-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);
}