-/* $OpenBSD: parse.y,v 1.73 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.74 2018/07/09 12:05:10 krw Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- warn("calloc");
+ warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
nfile->stream = stdin;
free(nfile->name);
if ((nfile->name = strdup("stdin")) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
} else if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- warn("malloc");
+ warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.171 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.172 2018/07/09 12:05:10 krw Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- warn("calloc");
+ warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
nfile->stream = stdin;
free(nfile->name);
if ((nfile->name = strdup("stdin")) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
} else if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.674 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.675 2018/07/09 12:05:10 krw Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
if ((nfile = calloc(1, sizeof(struct file))) == NULL ||
(nfile->name = strdup(name)) == NULL) {
- if (nfile) {
- warn("strdup");
+ warn("%s", __func__);
+ if (nfile)
free(nfile);
- } else
- warn("calloc");
return (NULL);
}
if (TAILQ_FIRST(&files) == NULL && strcmp(nfile->name, "-") == 0) {
nfile->stream = stdin;
free(nfile->name);
if ((nfile->name = strdup("stdin")) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
} else if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- warn("malloc");
+ warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.23 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.24 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- warn("calloc");
+ warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- warn("malloc");
+ warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.324 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.325 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.34 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.35 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.24 2018/06/11 10:01:04 denis Exp $ */
+/* $OpenBSD: parse.y,v 1.25 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%%s: s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.56 2018/06/11 09:09:36 denis Exp $ */
+/* $OpenBSD: parse.y,v 1.57 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- warn("out of memory");
+ warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- warn("out of memory");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- warn("malloc");
+ warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.103 2018/06/20 16:43:05 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.104 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2007 - 2015 Reyk Floeter <reyk@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("%s: malloc", __func__);
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("%s: malloc", __func__);
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("%s: malloc", __func__);
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.50 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.51 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- warn("calloc");
+ warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.13 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.14 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- warn("calloc");
+ warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- warn("strdup");
+ warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- warn("malloc");
+ warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.30 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.31 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
log_debug("parsing config %s", name);
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.6 2014/11/20 05:51:20 jsg Exp $ */
+/* $OpenBSD: parse.y,v 1.7 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis <kettenis@openbsd.org>
nfile = xzalloc(sizeof(struct file));
nfile->name = xstrdup(name);
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- warn("%s", nfile->name);
+ warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.63 2018/06/11 09:34:46 denis Exp $ */
+/* $OpenBSD: parse.y,v 1.64 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2013, 2015, 2016 Renato Westphal <renato@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.1.1.1 2018/04/27 16:14:37 eric Exp $ */
+/* $OpenBSD: parse.y,v 1.2 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("warn: malloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("warn: malloc");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("warn: %s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.20 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.21 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
#else
if ((nfile->stream = priv_fopen(nfile->name)) == NULL) {
#endif
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.68 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.69 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.33 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.34 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.89 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.90 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.5 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.6 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.224 2018/06/11 18:18:00 denis Exp $ */
+/* $OpenBSD: parse.y,v 1.225 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("%s: malloc", __func__);
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("%s: malloc", __func__);
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("%s: malloc", __func__);
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.39 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.40 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
-/* $OpenBSD: parse.y,v 1.214 2018/06/18 18:19:14 gilles Exp $ */
+/* $OpenBSD: parse.y,v 1.215 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("warn: malloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("warn: malloc");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("warn: %s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("warn: malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.49 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.50 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
int found;
if ((conf = calloc(1, sizeof(*conf))) == NULL) {
- log_warn("cannot allocate memory");
+ log_warn("%s", __func__);
return (NULL);
}
-/* $OpenBSD: parse.y,v 1.8 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.9 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
-/* $OpenBSD: parse.y,v 1.37 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.38 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
const char *errstr;
if ((s = strdup(str)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
goto fail;
}
-/* $OpenBSD: parse.y,v 1.26 2018/07/08 17:15:07 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.27 2018/07/09 12:05:11 krw Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("calloc");
+ log_warn("%s", __func__);
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
free(nfile);
return (NULL);
}
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
- log_warn("%s", nfile->name);
+ log_warn("%s: %s", __func__, nfile->name);
free(nfile->name);
free(nfile);
return (NULL);
nfile->ungetsize = 16;
nfile->ungetbuf = malloc(nfile->ungetsize);
if (nfile->ungetbuf == NULL) {
- log_warn("malloc");
+ log_warn("%s", __func__);
fclose(nfile->stream);
free(nfile->name);
free(nfile);
conf->sc_conf_tv.tv_usec = 0;
conf->sc_cafile = strdup(YPLDAP_CERT_FILE);
if (conf->sc_cafile == NULL) {
- log_warn("strdup");
+ log_warn("%s", __func__);
return (-1);
}