From 29e3edcc6415d9db03d6955ee4f6847d481e3f2a Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 5 Feb 2003 20:08:39 +0000 Subject: [PATCH] Use a more standard error message. Add FBSDID. Reviewed by: ru --- sbin/natd/natd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index a3fe7d6fbaf..38f923fe542 100644 --- a/sbin/natd/natd.c +++ b/sbin/natd/natd.c @@ -8,10 +8,11 @@ * You may copy, modify and distribute this software (natd.c) freely. * * Ari Suutari - * - * $FreeBSD$ */ +#include +__FBSDID("$FreeBSD$"); + #define SYSLOG_NAMES #include @@ -1601,7 +1602,7 @@ u_short StrToPort (const char* str, const char* proto) sp = getservbyname (str, proto); if (!sp) - errx (1, "unknown service %s/%s", str, proto); + errx (1, "%s/%s: unknown service", str, proto); return sp->s_port; } @@ -1633,7 +1634,7 @@ int StrToPortRange (const char* str, const char* proto, port_range *portRange) } /* Error in port range field. */ - errx (1, "unknown service %s/%s", str, proto); + errx (1, "%s/%s: unknown service", str, proto); } /* Port range, get the values and sanity check. */