From 81de90466c45cc2dc419a68426a13accc28b051e Mon Sep 17 00:00:00 2001 From: krw <> Date: Sun, 8 Jul 2018 17:15:07 +0000 Subject: [PATCH] Be consistent in warn() and log_warn() usage when running out of memory. Next step, be correct *and* consistent. ok dennis@ tb@ benno@ schwarze@ --- src/usr.sbin/ntpd/parse.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/usr.sbin/ntpd/parse.y b/src/usr.sbin/ntpd/parse.y index 41fa9ba1..52e30138 100644 --- a/src/usr.sbin/ntpd/parse.y +++ b/src/usr.sbin/ntpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.67 2017/08/11 19:12:21 naddy Exp $ */ +/* $OpenBSD: parse.y,v 1.68 2018/07/08 17:15:07 krw Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -733,11 +733,11 @@ pushfile(const char *name) struct file *nfile; if ((nfile = calloc(1, sizeof(struct file))) == NULL) { - log_warn("malloc"); + log_warn("calloc"); return (NULL); } if ((nfile->name = strdup(name)) == NULL) { - log_warn("malloc"); + log_warn("strdup"); free(nfile); return (NULL); }