mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Change format of passwords (less ;'s) and fix password.h to allow
multiple inclusions.
This commit is contained in:
parent
7eb01479c9
commit
858a717796
@ -146,15 +146,16 @@ password_begin:
|
|||||||
|
|
||||||
password_items:
|
password_items:
|
||||||
/* empty */ { }
|
/* empty */ { }
|
||||||
| FROM datetime ';' password_items { last_password_item->from = $2; }
|
| FROM datetime password_items { last_password_item->from = $2; }
|
||||||
| TO datetime ';' password_items { last_password_item->to = $2; }
|
| TO datetime password_items { last_password_item->to = $2; }
|
||||||
| ID NUM ';' password_items { last_password_item->id = $2; }
|
| ID NUM password_items { last_password_item->id = $2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
password_list:
|
password_list:
|
||||||
/* empty */ { $$ = NULL; }
|
/* empty */ { $$ = NULL; }
|
||||||
| '{' password_begin ';' password_items '}' password_list {
|
| password_begin password_items ';' password_list {
|
||||||
last_password_item->next = $6;
|
last_password_item->next = $4;
|
||||||
|
$$ = last_password_item;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* Can be freely distributed and used under the terms of the GNU GPL.
|
* 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 {
|
||||||
struct password_item *next;
|
struct password_item *next;
|
||||||
char *password;
|
char *password;
|
||||||
@ -14,3 +16,4 @@ struct password_item {
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern struct password_item *last_password_item;
|
extern struct password_item *last_password_item;
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user