summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/main.c
diff options
context:
space:
mode:
authorwkoszek <wkoszek@FreeBSD.org>2009-02-07 11:12:30 +0000
committerwkoszek <wkoszek@FreeBSD.org>2009-02-07 11:12:30 +0000
commit5be805d3a6f380c20f000eee83bfd90b1f104b89 (patch)
treeec41946377c9b169d8a24beade3fd0baf8103030 /usr.sbin/config/main.c
parent10be92c87c3e8130f83236f0b69d17c41c6e212d (diff)
downloadFreeBSD-src-5be805d3a6f380c20f000eee83bfd90b1f104b89.zip
FreeBSD-src-5be805d3a6f380c20f000eee83bfd90b1f104b89.tar.gz
Remove leftover of alpha support for config(8)--we have MAP_FAILED
globally defined.
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r--usr.sbin/config/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index 58d6f2a..dc43dd7 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -565,9 +565,6 @@ moveifchanged(const char *from_name, const char *to_name)
if (!changed) {
p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0);
-#ifndef MAP_FAILED
-#define MAP_FAILED ((caddr_t) -1)
-#endif
if (p == MAP_FAILED)
err(EX_OSERR, "mmap %s", from_name);
q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0);
OpenPOWER on IntegriCloud