diff options
author | charnier <charnier@FreeBSD.org> | 2003-02-05 20:08:39 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2003-02-05 20:08:39 +0000 |
commit | c142aa48bd103bdbb9a10bddbe4c1de1c68d38ed (patch) | |
tree | fe9cd1b5d83aef6661a874c1581f24ac1e20f14d /sbin/natd | |
parent | cae0aa62ce3fde3489f15122ed10dbcb349b1b8d (diff) | |
download | FreeBSD-src-c142aa48bd103bdbb9a10bddbe4c1de1c68d38ed.zip FreeBSD-src-c142aa48bd103bdbb9a10bddbe4c1de1c68d38ed.tar.gz |
Use a more standard error message. Add FBSDID.
Reviewed by: ru
Diffstat (limited to 'sbin/natd')
-rw-r--r-- | sbin/natd/natd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index a3fe7d6..38f923f 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 <suutari@iki.fi> - * - * $FreeBSD$ */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #define SYSLOG_NAMES #include <sys/types.h> @@ -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. */ |