diff options
author | charnier <charnier@FreeBSD.org> | 1997-12-02 12:25:39 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-12-02 12:25:39 +0000 |
commit | 9f2efa4db96cde0b43aa15421cda1aa2e4a138c1 (patch) | |
tree | 35a3b7293902f24e8ccf1c1e900c290e2062f5dd /libexec/rpc.sprayd/sprayd.c | |
parent | 5ea1ba746edd76baf3e0a313a47d11a63fba4b7b (diff) | |
download | FreeBSD-src-9f2efa4db96cde0b43aa15421cda1aa2e4a138c1.zip FreeBSD-src-9f2efa4db96cde0b43aa15421cda1aa2e4a138c1.tar.gz |
Do not terminate syslog() messages with a dot, as others daemons do.
Diffstat (limited to 'libexec/rpc.sprayd/sprayd.c')
-rw-r--r-- | libexec/rpc.sprayd/sprayd.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libexec/rpc.sprayd/sprayd.c b/libexec/rpc.sprayd/sprayd.c index 44883f4..b6e5fd1 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 <stdio.h> -#include <stdlib.h> -#include <signal.h> -#include <unistd.h> #include <rpc/rpc.h> #include <rpc/pmap_clnt.h> +#include <rpcsvc/spray.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> #include <sys/time.h> #include <sys/socket.h> #include <syslog.h> -#include <rpcsvc/spray.h> +#include <unistd.h> 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; } |