-/* $OpenBSD: conflex.c,v 1.17 2017/02/13 22:33:39 krw Exp $ */
+/* $OpenBSD: conflex.c,v 1.18 2017/04/12 19:12:01 krw Exp $ */
/* Lexical scanner for dhcpd config file... */
static int read_string(FILE *);
static int read_num_or_name(int, FILE *);
static int intern(char *, int);
+static int kw_cmp(const void *, const void *);
void
new_parse(char *name)
{ "vendor-class", TOK_VENDOR_CLASS }
};
-int
+static int
kw_cmp(const void *k, const void *e)
{
return (strcasecmp(k, ((const struct keywords *)e)->k_name));
-/* $OpenBSD: confpars.c,v 1.31 2017/02/13 23:04:05 krw Exp $ */
+/* $OpenBSD: confpars.c,v 1.32 2017/04/12 19:12:01 krw Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.
#include "dhctoken.h"
#include "log.h"
+int parse_cidr(FILE *, unsigned char *, unsigned char *);
+
/*
* conf-file :== parameters declarations EOF
* parameters :== <nil> | parameter | parameters parameter