]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Change format of passwords (less ;'s) and fix password.h to allow
authorPavel Machek <pavel@ucw.cz>
Wed, 26 May 1999 14:37:07 +0000 (14:37 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 26 May 1999 14:37:07 +0000 (14:37 +0000)
multiple inclusions.

nest/config.Y
nest/password.h

index c13a6aecc6def2fb42f4891eb144a52f807f1082..b0634a628ba4bf0959ed73930a3110675928d7a1 100644 (file)
@@ -146,15 +146,16 @@ password_begin:
 
 password_items:
    /* empty */ { } 
- | FROM datetime ';' password_items { last_password_item->from = $2; }
- | TO datetime ';' password_items { last_password_item->to = $2; }
- | ID NUM ';' password_items { last_password_item->id = $2; }
+ | FROM datetime password_items { last_password_item->from = $2; }
+ | TO datetime password_items { last_password_item->to = $2; }
+ | ID NUM password_items { last_password_item->id = $2; }
  ;
 
 password_list: 
    /* empty */ { $$ = NULL; } 
- | '{' password_begin ';' password_items '}' password_list {
-     last_password_item->next = $6;
+ | password_begin password_items ';' password_list {
+     last_password_item->next = $4;
+     $$ = last_password_item;
    }
  ;
 
index db2a8bff70a3c798573f86c10e24912a1cbddf2d..b457495ae3f90962074c3aa4b3b52cefa7a9caa3 100644 (file)
@@ -6,6 +6,8 @@
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
+#ifndef PASSWORD_H
+#define PASSWORD_H
 struct password_item {
   struct password_item *next;
   char *password;
@@ -14,3 +16,4 @@ struct password_item {
 };
 
 extern struct password_item *last_password_item;
+#endif