From c7c2ef669a8401b6a8fd2fc3d1482e5f693ba9ad Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Tue, 2 Dec 1997 12:25:39 +0000 Subject: Do not terminate syslog() messages with a dot, as others daemons do. --- libexec/rpc.sprayd/rpc.sprayd.8 | 12 +++++++----- libexec/rpc.sprayd/sprayd.c | 19 +++++++++---------- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'libexec') diff --git a/libexec/rpc.sprayd/rpc.sprayd.8 b/libexec/rpc.sprayd/rpc.sprayd.8 index 1b7b82366a62..5979b44758ec 100644 --- a/libexec/rpc.sprayd/rpc.sprayd.8 +++ b/libexec/rpc.sprayd/rpc.sprayd.8 @@ -27,7 +27,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id$ +.\" $Id: rpc.sprayd.8,v 1.4 1997/02/22 14:22:20 peter Exp $ .\" .Dd June 22, 1994 .Dt RPC.SPRAYD 8 @@ -38,17 +38,19 @@ .Sh SYNOPSIS .Nm /usr/libexec/rpc.sprayd .Sh DESCRIPTION -.Nm rpc.sprayd +.Nm Rpc.sprayd is a server which records packets sent by the .Xr spray 8 command and sends a traffic report to the originator of the packets. The -.Nm rpc.sprayd +.Nm daemon is normally invoked by .Xr inetd 8 . .Pp -.Nm rpc.sprayd -uses an RPC protocol defined in +.Nm Rpc.sprayd +uses an +.Tn RPC +protocol defined in .Pa /usr/include/rpcsvc/spray.x . .Sh SEE ALSO .Xr spray 8 diff --git a/libexec/rpc.sprayd/sprayd.c b/libexec/rpc.sprayd/sprayd.c index 44883f4a111e..b6e5fd1ec6e2 100644 --- a/libexec/rpc.sprayd/sprayd.c +++ b/libexec/rpc.sprayd/sprayd.c @@ -26,24 +26,23 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * $Id$ */ #ifndef lint -static char rcsid[] = "$Id$"; +static const char rcsid[] = + "$Id$"; #endif /* not lint */ -#include -#include -#include -#include #include #include +#include +#include +#include +#include #include #include #include -#include +#include static void spray_service __P((struct svc_req *, SVCXPRT *)); @@ -112,12 +111,12 @@ main(argc, argv) transp = svcudp_create(sock); if (transp == NULL) { - syslog(LOG_ERR, "cannot create udp service."); + syslog(LOG_ERR, "cannot create udp service"); return 1; } if (!svc_register(transp, SPRAYPROG, SPRAYVERS, spray_service, proto)) { syslog(LOG_ERR, - "unable to register (SPRAYPROG, SPRAYVERS, %s).", + "unable to register (SPRAYPROG, SPRAYVERS, %s)", proto ? "udp" : "(inetd)"); return 1; } -- cgit v1.3