summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ab
blob: 76f7c28e456315475ee3d58149856b23287cb658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.6 2006/10/14 19:33:45 schwarz Exp $

--- account.c.orig	2005-03-31 08:03:10.000000000 +0200
+++ account.c	2006-10-14 19:40:00.000000000 +0200
@@ -31,7 +31,7 @@
 extern int      errno;
 
 struct account {
-    off_t           ac_offset;	/* offset in acct file */
+    long          ac_offset;	/* offset in acct file */
     int             ac_found;	/* present in acct file */
 
     char            ac_user[24];/* user name */
@@ -216,7 +216,7 @@
     if (ac->ac_found)
 	fseek(acctf, ac->ac_offset, 0);
     else
-	fseek(acctf, (off_t) 0, 2);
+	fseek(acctf, (long) 0, 2);
 
     fprintf(acctf, OUTPUT_FMT,
 	    ac->ac_user, ac->ac_total, ac->ac_last,