summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:56:59 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:56:59 +0000
commitbe49336ef4baab0dc1a61ba3fd53ba01340e7a80 (patch)
treec393ba7b80ba63f6b31bd3172f67473bfa6bd5e0 /libdiskfs
parent6638f070288e3e8c3b1480757542ebc0552f6009 (diff)
2002-05-08 Roland McGrath <roland@frob.com>
* sync-interval.c (diskfs_set_sync_interval): Cast int to intptr_t before any_t.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/sync-interval.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libdiskfs/sync-interval.c b/libdiskfs/sync-interval.c
index 8167fc4a..20b9fbb4 100644
--- a/libdiskfs/sync-interval.c
+++ b/libdiskfs/sync-interval.c
@@ -1,8 +1,7 @@
/* Support for periodic syncing
- Copyright (C) 1995, 96, 99 Free Software Foundation, Inc.
-
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1995,96,99,2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -68,7 +67,7 @@ diskfs_set_sync_interval (int interval)
else
{
periodic_sync_thread =
- cthread_fork ((cthread_fn_t)periodic_sync, (any_t)interval);
+ cthread_fork ((cthread_fn_t)periodic_sync, (any_t)(intptr_t)interval);
if (periodic_sync_thread)
cthread_detach (periodic_sync_thread);
else