From 8e4ac5fee08f8edb4d62fe74665c11ed1d65c4cf Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 18 Nov 1997 07:01:50 +0000 Subject: [PATCH] use warn("%s", func()) instead of warn(func()) --- usr.sbin/ypserv/yppush/yppush_proc.c | 6 +++--- usr.sbin/ypserv/yppush/yppush_svc.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/ypserv/yppush/yppush_proc.c b/usr.sbin/ypserv/yppush/yppush_proc.c index bf8d411450df..9454c4337a0c 100644 --- a/usr.sbin/ypserv/yppush/yppush_proc.c +++ b/usr.sbin/ypserv/yppush/yppush_proc.c @@ -1,4 +1,4 @@ -/* $NetBSD: yppush_proc.c,v 1.3 1997/10/13 07:38:11 lukem Exp $ */ +/* $NetBSD: yppush_proc.c,v 1.4 1997/11/18 07:01:50 lukem Exp $ */ /* * Copyright (c) 1996 Mats O Jansson @@ -33,7 +33,7 @@ #include #ifndef lint -__RCSID("$NetBSD: yppush_proc.c,v 1.3 1997/10/13 07:38:11 lukem Exp $"); +__RCSID("$NetBSD: yppush_proc.c,v 1.4 1997/11/18 07:01:50 lukem Exp $"); #endif #include @@ -67,7 +67,7 @@ yppushproc_xfrresp_1_svc(argp, rqstp) static char result; if (resp->status != YPPUSH_SUCC) - warnx(yppush_err_string(resp->status)); + warnx("%s", yppush_err_string(resp->status)); (void) memset(&result, 0, sizeof(result)); return ((void *)&result); diff --git a/usr.sbin/ypserv/yppush/yppush_svc.c b/usr.sbin/ypserv/yppush/yppush_svc.c index 088c28e25858..f4cf24fba4be 100644 --- a/usr.sbin/ypserv/yppush/yppush_svc.c +++ b/usr.sbin/ypserv/yppush/yppush_svc.c @@ -1,4 +1,4 @@ -/* $NetBSD: yppush_svc.c,v 1.4 1997/10/13 07:38:12 lukem Exp $ */ +/* $NetBSD: yppush_svc.c,v 1.5 1997/11/18 07:01:52 lukem Exp $ */ /* * Copyright (c) 1996 Mats O Jansson @@ -33,7 +33,7 @@ #include #ifndef lint -__RCSID("$NetBSD: yppush_svc.c,v 1.4 1997/10/13 07:38:12 lukem Exp $"); +__RCSID("$NetBSD: yppush_svc.c,v 1.5 1997/11/18 07:01:52 lukem Exp $"); #endif /* @@ -81,11 +81,11 @@ void _msgout(msg) { #ifdef RPC_SVC_FG if (_rpcpmstart) - syslog(LOG_ERR, msg); + syslog(LOG_ERR, "%s", msg); else - warnx(msg); + warnx("%s", msg); #else - syslog(LOG_ERR, msg); + syslog(LOG_ERR, "%s", msg); #endif }