svn commit: trunk/uClibc/libc/sysdeps/linux/common

vapier at uclibc.org vapier at uclibc.org
Thu Jan 5 03:30:28 UTC 2006


Author: vapier
Date: 2006-01-04 19:30:27 -0800 (Wed, 04 Jan 2006)
New Revision: 13102

Log:
use tabs for whitespace

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/mmap64.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/mmap64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/mmap64.c	2006-01-05 03:28:31 UTC (rev 13101)
+++ trunk/uClibc/libc/sysdeps/linux/common/mmap64.c	2006-01-05 03:30:27 UTC (rev 13102)
@@ -55,13 +55,12 @@
 
 __ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t offset)
 {
-    if (offset != (off_t) offset || (offset + len) != (off_t) (offset + len))
-    {
-	__set_errno (EINVAL);
-	return MAP_FAILED;
-    }
+	if (offset != (off_t) offset || (offset + len) != (off_t) (offset + len)) {
+		__set_errno (EINVAL);
+		return MAP_FAILED;
+	}
 
-    return mmap (addr, len, prot, flags, fd, (off_t) offset);
+	return mmap (addr, len, prot, flags, fd, (off_t) offset);
 }
 
 #else
@@ -77,11 +76,11 @@
 
 __ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t offset)
 {
-    if (offset & ((1 << MMAP2_PAGE_SHIFT) - 1)) {
-	__set_errno (EINVAL);
-	return MAP_FAILED;
-    }
-    return(__syscall_mmap2(addr, len, prot, flags, fd, (off_t) (offset >> MMAP2_PAGE_SHIFT)));
+	if (offset & ((1 << MMAP2_PAGE_SHIFT) - 1)) {
+		__set_errno (EINVAL);
+		return MAP_FAILED;
+	}
+	return(__syscall_mmap2(addr, len, prot, flags, fd, (off_t) (offset >> MMAP2_PAGE_SHIFT)));
 }
 
 #endif




More information about the uClibc-cvs mailing list