]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix copyrights; fix typos; take out TM_GMT garbage
authorTed Lemon <source@isc.org>
Sun, 19 May 1996 23:57:22 +0000 (23:57 +0000)
committerTed Lemon <source@isc.org>
Sun, 19 May 1996 23:57:22 +0000 (23:57 +0000)
confpars.c
server/confpars.c

index 1570c389c0a9ead623ce49c091c475e257f3921a..06259084712b314b1723b1f4c4fe477be6f68d1d 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 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 */
 
 #include "dhcpd.h"
@@ -890,7 +890,7 @@ struct lease *parse_lease_statement (cfile, bc)
                                lease.uid_len = 0;
                                token = peek_token (&val, cfile);
                                if (token == STRING) {
-                                       token = NEXT_TOKEN (&val, cfile);
+                                       token = next_token (&val, cfile);
                                        lease.uid_len = strlen (val) + 1;
                                        s = val;
                                } else {
@@ -900,7 +900,7 @@ struct lease *parse_lease_statement (cfile, bc)
                                        s = ubuf;
                                        if (lease.uid_len == 0) {
                                                parse_warn ("zero-length uid");
-                                               seen_bit = 0;
+                                               seenbit = 0;
                                                break;
                                        }
                                }
@@ -1109,12 +1109,6 @@ TIME parse_date (cfile, bc)
                longjmp (jdref (bc), 1);
        }
        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;
 
        /* XXX */ /* We assume that mktime does not use tm_yday. */
index 1570c389c0a9ead623ce49c091c475e257f3921a..06259084712b314b1723b1f4c4fe477be6f68d1d 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 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 */
 
 #include "dhcpd.h"
@@ -890,7 +890,7 @@ struct lease *parse_lease_statement (cfile, bc)
                                lease.uid_len = 0;
                                token = peek_token (&val, cfile);
                                if (token == STRING) {
-                                       token = NEXT_TOKEN (&val, cfile);
+                                       token = next_token (&val, cfile);
                                        lease.uid_len = strlen (val) + 1;
                                        s = val;
                                } else {
@@ -900,7 +900,7 @@ struct lease *parse_lease_statement (cfile, bc)
                                        s = ubuf;
                                        if (lease.uid_len == 0) {
                                                parse_warn ("zero-length uid");
-                                               seen_bit = 0;
+                                               seenbit = 0;
                                                break;
                                        }
                                }
@@ -1109,12 +1109,6 @@ TIME parse_date (cfile, bc)
                longjmp (jdref (bc), 1);
        }
        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;
 
        /* XXX */ /* We assume that mktime does not use tm_yday. */