From: krw Date: Wed, 12 Apr 2017 19:12:01 +0000 (+0000) Subject: Add missing function prototypes. Mark kw_cmp() as static like all X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3b0fbcd488bc731fe7f0623e67ba04d39b705792;p=openbsd Add missing function prototypes. Mark kw_cmp() as static like all its friends. --- diff --git a/usr.sbin/dhcpd/conflex.c b/usr.sbin/dhcpd/conflex.c index 5197917e352..73d463ac4e6 100644 --- a/usr.sbin/dhcpd/conflex.c +++ b/usr.sbin/dhcpd/conflex.c @@ -1,4 +1,4 @@ -/* $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... */ @@ -82,6 +82,7 @@ static void skip_to_eol(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) @@ -343,7 +344,7 @@ static const struct keywords { { "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)); diff --git a/usr.sbin/dhcpd/confpars.c b/usr.sbin/dhcpd/confpars.c index 4d5f1d1eb1c..820556eb7d1 100644 --- a/usr.sbin/dhcpd/confpars.c +++ b/usr.sbin/dhcpd/confpars.c @@ -1,4 +1,4 @@ -/* $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. @@ -54,6 +54,8 @@ #include "dhctoken.h" #include "log.h" +int parse_cidr(FILE *, unsigned char *, unsigned char *); + /* * conf-file :== parameters declarations EOF * parameters :== | parameter | parameters parameter