Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/rpc.sprayd consistently use exit instead of return i...
details: https://anonhg.NetBSD.org/src/rev/a1c8ee3c69a2
branches: trunk
changeset: 501982:a1c8ee3c69a2
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jan 10 01:57:51 2001 +0000
description:
consistently use exit instead of return in main()
use LOG_WARNING instead of LOG_ERR for non critical errors
diffstat:
libexec/rpc.sprayd/sprayd.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r f611ecf05049 -r a1c8ee3c69a2 libexec/rpc.sprayd/sprayd.c
--- a/libexec/rpc.sprayd/sprayd.c Wed Jan 10 01:50:05 2001 +0000
+++ b/libexec/rpc.sprayd/sprayd.c Wed Jan 10 01:57:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sprayd.c,v 1.12 2000/06/03 21:06:02 fvdl Exp $ */
+/* $NetBSD: sprayd.c,v 1.13 2001/01/10 01:57:51 lukem Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: sprayd.c,v 1.12 2000/06/03 21:06:02 fvdl Exp $");
+__RCSID("$NetBSD: sprayd.c,v 1.13 2001/01/10 01:57:51 lukem Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -103,7 +103,7 @@
transp = svc_dg_create(0, 0, 0);
if (transp == NULL) {
syslog(LOG_ERR, "cannot create udp service.");
- return 1;
+ exit(1);
}
if (!svc_reg(transp, SPRAYPROG, SPRAYVERS, spray_service,
NULL)) {
@@ -121,7 +121,7 @@
svc_run();
syslog(LOG_ERR, "svc_run returned");
- return 1;
+ exit(1);
}
@@ -159,6 +159,6 @@
if (!svc_sendreply(transp, xdr_spraycumul, (caddr_t)&scum)) {
svcerr_systemerr(transp);
- syslog(LOG_ERR, "bad svc_sendreply");
+ syslog(LOG_WARNING, "bad svc_sendreply");
}
}
Home |
Main Index |
Thread Index |
Old Index