aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lock.c b/lock.c
index b8dbc503..89bf896a 100644
--- a/lock.c
+++ b/lock.c
@@ -47,11 +47,7 @@ void lock_setup(void)
#undef FETCHMAIL_PIDFILE
}
-#ifdef HAVE_ON_EXIT
-static void unlockit(int n, void *p)
-#else
static void unlockit(void)
-#endif
/* must-do actions for exit (but we can't count on being able to do malloc) */
{
if (lockfile && lock_acquired)
@@ -64,9 +60,6 @@ void lock_dispose(void)
#ifdef HAVE_ATEXIT
atexit(unlockit);
#endif
-#ifdef HAVE_ON_EXIT
- on_exit(unlockit, (char *)NULL);
-#endif
}
int lock_state(void)