summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-15 23:33:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-15 23:33:42 +0000
commit2b3a7fec7da4df120e14f24f4b6c2797c4176b83 (patch)
tree06c1821ab0491f6c8dfe52898790120bf0310705
parent2dd658cba6b794e812536f9acda89fbfa98fac3b (diff)
use ftello() instead of ftell() where better
-rw-r--r--sbin/dhclient/dhclient.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 005c91df9e5..19c8fe3929a 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.59 2004/09/15 18:15:18 henning Exp $ */
+/* $OpenBSD: dhclient.c,v 1.60 2004/09/15 23:33:41 deraadt Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -165,6 +165,7 @@ get_ifa(char *cp, int n)
return (NULL);
}
+/* ARGSUSED */
void
routehandler(struct protocol *p)
{
@@ -1654,7 +1655,7 @@ rewrite_client_leases(void)
write_client_lease(ifi, ifi->client->active, 1);
fflush(leaseFile);
- ftruncate(fileno(leaseFile), ftell(leaseFile));
+ ftruncate(fileno(leaseFile), ftello(leaseFile));
fsync(fileno(leaseFile));
}