use warn("%s", func()) instead of warn(func())

This commit is contained in:
lukem 1997-11-18 07:01:50 +00:00
parent 2b952b2261
commit 8e4ac5fee0
2 changed files with 8 additions and 8 deletions

View File

@ -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 <moj@stacken.kth.se>
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#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 <sys/types.h>
@ -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);

View File

@ -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 <moj@stacken.kth.se>
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#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
}