Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/external/mpl/dhcp/dist/keama/keama.c,v rcsdiff: /ftp/cvs/cvsroot/src/external/mpl/dhcp/dist/keama/keama.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- src/external/mpl/dhcp/dist/keama/keama.c 2020/08/03 21:10:57 1.2 +++ src/external/mpl/dhcp/dist/keama/keama.c 2022/04/03 01:10:59 1.3 @@ -1,7 +1,7 @@ -/* $NetBSD: keama.c,v 1.2 2020/08/03 21:10:57 christos Exp $ */ +/* $NetBSD: keama.c,v 1.3 2022/04/03 01:10:59 christos Exp $ */ /* - * Copyright(c) 2017-2019 by Internet Systems Consortium, Inc.("ISC") + * Copyright(C) 2017-2022 Internet Systems Consortium, Inc.("ISC") * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -16,15 +16,15 @@ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Internet Systems Consortium, Inc. - * 950 Charter Street - * Redwood City, CA 94063 + * PO Box 360 + * Newmarket, NH 03857 USA * * https://www.isc.org/ * */ #include -__RCSID("$NetBSD: keama.c,v 1.2 2020/08/03 21:10:57 christos Exp $"); +__RCSID("$NetBSD: keama.c,v 1.3 2022/04/03 01:10:59 christos Exp $"); #include #include @@ -52,6 +52,9 @@ usage(const char *sfmt, const char *sarg exit(1); } +enum resolve resolve; +struct parses parses; + int local_family = 0; char *hook_library_path = NULL; char *input_file = NULL; @@ -65,7 +68,7 @@ isc_boolean_t json = ISC_FALSE; static const char use_noarg[] = "No argument for command: %s"; static const char bad_resolve[] = "Bad -r argument: %s"; -int +int main(int argc, char **argv) { int i, fd; char *inbuf = NULL; @@ -109,7 +112,7 @@ main(int argc, char **argv) { if (++i == argc) usage(use_noarg, argv[i - 1]); output_file = argv[i]; - } else + } else usage("Unknown command: %s", argv[i]); } @@ -203,10 +206,10 @@ parse_error(struct parse *cfile, const c char mbuf[1024]; char fbuf[1024]; unsigned i, lix; - + snprintf(fbuf, sizeof(fbuf), "%s line %d: %s", cfile->tlname, cfile->lexline, fmt); - + va_start(list, fmt); vsnprintf(mbuf, sizeof(mbuf), fbuf, list); va_end(list);