-/* $OpenBSD: confpars.c,v 1.26 2016/02/06 23:50:10 krw Exp $ */
+/* $OpenBSD: confpars.c,v 1.27 2016/08/17 00:38:26 krw Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.
| VENDOR_CLASS class-declaration
| USER_CLASS class-declaration
| RANGE address-range-declaration */
-
-int parse_statement(cfile, group, type, host_decl, declaration)
- FILE *cfile;
- struct group *group;
- int type;
- struct host_decl *host_decl;
- int declaration;
+int
+parse_statement(FILE *cfile, struct group *group, int type,
+ struct host_decl *host_decl, int declaration)
{
int token;
char *val;
| DYNAMIC_BOOTP
| UNKNOWN_CLIENTS */
-void parse_allow_deny(cfile, group, flag)
- FILE *cfile;
- struct group *group;
- int flag;
+void
+parse_allow_deny(FILE *cfile, struct group *group, int flag)
{
int token;
char *val;
/* host-declaration :== hostname '{' parameters declarations '}' */
-void parse_host_declaration(cfile, group)
- FILE *cfile;
- struct group *group;
+void
+parse_host_declaration(FILE *cfile, struct group *group)
{
char *val;
int token;
/* class-declaration :== STRING '{' parameters declarations '}'
*/
-void parse_class_declaration(cfile, group, type)
- FILE *cfile;
- struct group *group;
- int type;
+void
+parse_class_declaration(FILE *cfile, struct group *group, int type)
{
char *val;
int token;
/* shared-network-declaration :==
hostname LBRACE declarations parameters RBRACE */
-void parse_shared_net_declaration(cfile, group)
- FILE *cfile;
- struct group *group;
+void
+parse_shared_net_declaration(FILE *cfile, struct group *group)
{
char *val;
int token;
/* subnet-declaration :==
net NETMASK netmask RBRACE parameters declarations LBRACE */
-void parse_subnet_declaration(cfile, share)
- FILE *cfile;
- struct shared_network *share;
+void
+parse_subnet_declaration(FILE *cfile, struct shared_network *share)
{
char *val;
int token;
/* group-declaration :== RBRACE parameters declarations LBRACE */
-void parse_group_declaration(cfile, group)
- FILE *cfile;
- struct group *group;
+void
+parse_group_declaration(FILE *cfile, struct group *group)
{
char *val;
int token;
}
token = next_token(&val, cfile);
+
if (token == TOK_NUMBER_OR_NAME)
*prefix = strtonum(val, 0, 32, &errstr);
a TREE_LIMIT node to catch hostnames that evaluate to more than
one IP address. */
-struct tree *parse_ip_addr_or_hostname(cfile, uniform)
- FILE *cfile;
- int uniform;
+struct tree *
+parse_ip_addr_or_hostname(FILE *cfile, int uniform)
{
char *val;
int token;
ip-addrs-or-hostnames :== ip-addr-or-hostname
| ip-addrs-or-hostnames ip-addr-or-hostname */
-struct tree_cache *parse_fixed_addr_param(cfile)
- FILE *cfile;
+struct tree_cache *
+parse_fixed_addr_param(FILE *cfile)
{
char *val;
int token;
would be painful to come up with BNF for it. However, it always
starts as above and ends in a SEMI. */
-void parse_option_param(cfile, group)
- FILE *cfile;
- struct group *group;
+void
+parse_option_param(FILE *cfile, struct group *group)
{
char *val;
int token;