]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/adouble/ad_mmap.c
libatalk: Fix a couple of issues in ad_openat()
[netatalk.git] / libatalk / adouble / ad_mmap.c
index 6a04944b9e3f782eef2b9ed6606fecab47ee79f8..a93ab5a502dfa64a7f826160457b4fa61d93b304 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id: ad_mmap.c,v 1.4 2002-10-05 13:20:14 didg Exp $
- *
  * ad_mmap provides interfaces to memory mapped files. as this is the
  * case, we don't have to deal w/ temporary buffers such as
  * ad_data. the ad_mmap routines are designed to not interact w/ the
 
 #ifdef USE_MMAPPED_HEADERS
 #include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif /* HAVE_UNISTD_H */
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif /* HAVE_FCNTL_H */
-#include <string.h>
 
 #include <atalk/adouble.h>
+#include <string.h>
 
-#include "ad_private.h"
+#include "ad_lock.h"
 
-static __inline__ void *ad_mmap(const size_t length, const int prot,
+static void *ad_mmap(const size_t length, const int prot,
                                const int flags, const int fd, 
                                const off_t offset)
 {