--- src/acct.c.orig	Fri Oct 23 12:47:05 1998
+++ src/acct.c	Fri Oct 23 12:48:13 1998
@@ -198,7 +198,7 @@
 			/*
 			 *	Match. Zap it.
 			 */
-			if (lseek(fd, -sizeof(u), SEEK_CUR) < 0) {
+			if (lseek(fd, -(off_t)sizeof(u), SEEK_CUR) < 0) {
 				log(L_ERR, "Accounting: radzap: negative lseek!\n");
 				lseek(fd, 0, SEEK_SET);
 			}
@@ -439,7 +439,7 @@
 				r = -1;
 				break;
 			}
-			if (lseek(fd, -sizeof(u), SEEK_CUR) < 0) {
+			if (lseek(fd, -(off_t)sizeof(u), SEEK_CUR) < 0) {
 				log(L_ERR, "Accounting: negative lseek!\n");
 				lseek(fd, 0, SEEK_SET);
 			}
@@ -1005,7 +1005,7 @@
 				 *	False record - zap it.
 				 */
 
-				lseek(fd, -sizeof(u), SEEK_CUR);
+				lseek(fd, -(off_t)sizeof(u), SEEK_CUR);
 				write(fd, &empty, sizeof(empty));
 
 				if ((wfp = fopen(RADWTMP, "a")) != NULL) {

