diff options
author | mux <mux@FreeBSD.org> | 2003-07-11 14:13:21 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-07-11 14:13:21 +0000 |
commit | c0f84f3a1eb26a6d6c9c89ff60a3a87c8e893128 (patch) | |
tree | 23f55de2065afe3dacbcbc11a43cfadef43b2891 /usr.sbin/rarpd/Makefile | |
parent | 089b6703f4d3345b873348985f3f4eb9314027b5 (diff) | |
download | FreeBSD-src-c0f84f3a1eb26a6d6c9c89ff60a3a87c8e893128.zip FreeBSD-src-c0f84f3a1eb26a6d6c9c89ff60a3a87c8e893128.tar.gz |
Huge cleanup of the rarpd(8) code :
- Use getifaddrs() instead of rolling our own buggy one. Previously,
rarpd(8) would fail to see some interfaces because of a hardcoded limit.
It now successfully sees any interface in the system, and this also makes
the code _much_ simpler.
- Replace strncpy() calls with strlcpy() calls. Some uses of strncpy()
were bogus ; the code wasn't ensuring that the string was NUL terminated.
- Don't try to guard about select() FD_* macros being undefined.
- Use IF_NAMESIZE and ETHER_ADDR_LEN macros where appropriate.
- Add static keywords to function definitions for consistency, since
the prototypes have it (I wonder why GCC didn't complain about this).
- Remove compat code for very old BSD versions and SunOS.
- Remove code for systems not having the dirent.h header.
- The code is now WARNS=5 clean so mark it as such.
- Don't add -DTFTP_DIR="/tftpboot" to the build command line since it's
the default.
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/rarpd/Makefile')
-rw-r--r-- | usr.sbin/rarpd/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/rarpd/Makefile b/usr.sbin/rarpd/Makefile index e94ad62..f5296b2 100644 --- a/usr.sbin/rarpd/Makefile +++ b/usr.sbin/rarpd/Makefile @@ -4,9 +4,8 @@ PROG= rarpd MAN= rarpd.8 -WARNS?= 2 +WARNS?= 5 # This breaks with format strings returned by expand_syslog_m().. argh! #FORMAT_AUDIT?= 1 -CFLAGS+= -DTFTP_DIR=\"/tftpboot\" .include <bsd.prog.mk> |