mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 14:55:30 +00:00
Fix copyrights; fix typos; take out TM_GMT garbage
This commit is contained in:
12
confpars.c
12
confpars.c
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"@(#) Copyright (c) 1995 The Internet Software Consortium. All rights reserved.\n";
|
"@(#) Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -890,7 +890,7 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
lease.uid_len = 0;
|
lease.uid_len = 0;
|
||||||
token = peek_token (&val, cfile);
|
token = peek_token (&val, cfile);
|
||||||
if (token == STRING) {
|
if (token == STRING) {
|
||||||
token = NEXT_TOKEN (&val, cfile);
|
token = next_token (&val, cfile);
|
||||||
lease.uid_len = strlen (val) + 1;
|
lease.uid_len = strlen (val) + 1;
|
||||||
s = val;
|
s = val;
|
||||||
} else {
|
} else {
|
||||||
@@ -900,7 +900,7 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
s = ubuf;
|
s = ubuf;
|
||||||
if (lease.uid_len == 0) {
|
if (lease.uid_len == 0) {
|
||||||
parse_warn ("zero-length uid");
|
parse_warn ("zero-length uid");
|
||||||
seen_bit = 0;
|
seenbit = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1109,12 +1109,6 @@ TIME parse_date (cfile, bc)
|
|||||||
longjmp (jdref (bc), 1);
|
longjmp (jdref (bc), 1);
|
||||||
}
|
}
|
||||||
tm.tm_sec = atoi (val);
|
tm.tm_sec = atoi (val);
|
||||||
|
|
||||||
#ifndef BROKEN_TM_GMT
|
|
||||||
/* linux does not implement these yet */
|
|
||||||
tm.tm_zone = "GMT";
|
|
||||||
tm.tm_gmtoff = 0;
|
|
||||||
#endif
|
|
||||||
tm.tm_isdst = 0;
|
tm.tm_isdst = 0;
|
||||||
|
|
||||||
/* XXX */ /* We assume that mktime does not use tm_yday. */
|
/* XXX */ /* We assume that mktime does not use tm_yday. */
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"@(#) Copyright (c) 1995 The Internet Software Consortium. All rights reserved.\n";
|
"@(#) Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -890,7 +890,7 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
lease.uid_len = 0;
|
lease.uid_len = 0;
|
||||||
token = peek_token (&val, cfile);
|
token = peek_token (&val, cfile);
|
||||||
if (token == STRING) {
|
if (token == STRING) {
|
||||||
token = NEXT_TOKEN (&val, cfile);
|
token = next_token (&val, cfile);
|
||||||
lease.uid_len = strlen (val) + 1;
|
lease.uid_len = strlen (val) + 1;
|
||||||
s = val;
|
s = val;
|
||||||
} else {
|
} else {
|
||||||
@@ -900,7 +900,7 @@ struct lease *parse_lease_statement (cfile, bc)
|
|||||||
s = ubuf;
|
s = ubuf;
|
||||||
if (lease.uid_len == 0) {
|
if (lease.uid_len == 0) {
|
||||||
parse_warn ("zero-length uid");
|
parse_warn ("zero-length uid");
|
||||||
seen_bit = 0;
|
seenbit = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1109,12 +1109,6 @@ TIME parse_date (cfile, bc)
|
|||||||
longjmp (jdref (bc), 1);
|
longjmp (jdref (bc), 1);
|
||||||
}
|
}
|
||||||
tm.tm_sec = atoi (val);
|
tm.tm_sec = atoi (val);
|
||||||
|
|
||||||
#ifndef BROKEN_TM_GMT
|
|
||||||
/* linux does not implement these yet */
|
|
||||||
tm.tm_zone = "GMT";
|
|
||||||
tm.tm_gmtoff = 0;
|
|
||||||
#endif
|
|
||||||
tm.tm_isdst = 0;
|
tm.tm_isdst = 0;
|
||||||
|
|
||||||
/* XXX */ /* We assume that mktime does not use tm_yday. */
|
/* XXX */ /* We assume that mktime does not use tm_yday. */
|
||||||
|
Reference in New Issue
Block a user