From: Ted Lemon Date: Thu, 28 Oct 1999 13:02:24 +0000 (+0000) Subject: Write 'never;' instead of 'infinite' for unlimited leases. X-Git-Tag: BCTEL_SPECIAL_19991124~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5fa877f8f195b0193494481e4912201c6026f01;p=thirdparty%2Fdhcp.git Write 'never;' instead of 'infinite' for unlimited leases. --- diff --git a/server/db.c b/server/db.c index 77a4fdac3..261146c6f 100644 --- a/server/db.c +++ b/server/db.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: db.c,v 1.35 1999/10/08 22:29:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: db.c,v 1.36 1999/10/28 13:02:24 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -62,7 +62,7 @@ int write_lease (lease) t -> tm_mon + 1, t -> tm_mday, t -> tm_hour, t -> tm_min, t -> tm_sec); } else - strcpy (tbuf, "infinite"); + strcpy (tbuf, "never;"); errno = 0; fprintf (db_file, "\tstarts %s\n", tbuf); if (errno) { @@ -76,7 +76,7 @@ int write_lease (lease) t -> tm_mon + 1, t -> tm_mday, t -> tm_hour, t -> tm_min, t -> tm_sec); } else - strcpy (tbuf, "infinite"); + strcpy (tbuf, "never;"); errno = 0; fprintf (db_file, "\tends %s", tbuf); if (errno) {