getdata: fix typo

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-11-05 10:01:07 +00:00
parent abf5d04736
commit 05f8208518
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
2 changed files with 4 additions and 4 deletions

View file

@ -129,7 +129,7 @@ enum isc_conf_parser {
ITS_A_RANGE_FIRST_IP,
ITS_A_RANGE_SECOND_IP,
ITS_A_SHAREDNET,
ITS_AN_INCLUCE,
ITS_AN_INCLUDE,
ITS_A_SUBNET,
ITS_A_NETMASK
};

View file

@ -157,7 +157,7 @@ static int is_interesting_config_clause(char const *restrict s)
return ITS_A_NETMASK;
}
if (strstr(s, "include"))
return ITS_AN_INCLUCE;
return ITS_AN_INCLUDE;
return ITS_NOTHING_INTERESTING;
}
@ -235,7 +235,7 @@ void parse_config(int is_include, const char *restrict config_file,
break;
if (comment == 0
&& argument != ITS_A_RANGE_FIRST_IP
&& argument != ITS_A_RANGE_SECOND_IP && argument != ITS_AN_INCLUCE) {
&& argument != ITS_A_RANGE_SECOND_IP && argument != ITS_AN_INCLUDE) {
newclause = 1;
i = 0;
} else if (argument == ITS_A_RANGE_FIRST_IP && one_ip_range == 1) {
@ -416,7 +416,7 @@ void parse_config(int is_include, const char *restrict config_file,
argument = ITS_NOTHING_INTERESTING;
braces_shared = braces;
break;
case ITS_AN_INCLUCE:
case ITS_AN_INCLUDE:
/* printf ("include file: %s\n", word); */
argument = ITS_NOTHING_INTERESTING;
parse_config(0, word, shared_p);