Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
858a7177
Commit
858a7177
authored
May 26, 1999
by
Pavel Machek
Browse files
Change format of passwords (less ;'s) and fix password.h to allow
multiple inclusions.
parent
7eb01479
Changes
2
Hide whitespace changes
Inline
Side-by-side
nest/config.Y
View file @
858a7177
...
...
@@ -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;
}
;
...
...
nest/password.h
View file @
858a7177
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment