$NetBSD: patch-ab,v 1.1.1.1 2005/01/12 19:52:38 reed Exp $ --- src/capture.c.orig 2004-05-29 01:52:02.000000000 +0200 +++ src/capture.c 2004-05-29 01:56:27.000000000 +0200 @@ -643,7 +643,7 @@ (*job->close) (fp); else if (job->flags & FLG_SYNC) { if (job->open == (void *(*)(char *, char*))fopen) - fdatasync(fileno(fp)); + fdatasync(fileno((FILE *)fp)); } /* substract the time we needed for creating and saving