patch-2.2.0-pre4 linux/fs/ntfs/support.c

Next file: linux/fs/ntfs/support.h
Previous file: linux/fs/ntfs/super.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre3/linux/fs/ntfs/support.c linux/fs/ntfs/support.c
@@ -7,7 +7,10 @@
  *
  */
 
-#include "types.h"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include "ntfstypes.h"
 #include "struct.h"
 #include "support.h"
 
@@ -86,17 +89,20 @@
 	memset(s, 0, n);
 }
 
-void *ntfs_memcpy(void *dest, const void *src, ntfs_size_t n)
+/* These functions deliberately return no value. It is dest, anyway,
+   and not used anywhere in the NTFS code.  */
+
+void ntfs_memcpy(void *dest, const void *src, ntfs_size_t n)
 {
-	return memcpy(dest, src, n);
+	memcpy(dest, src, n);
 }
 
-void *ntfs_memmove(void *dest, const void *src, ntfs_size_t n)
+void ntfs_memmove(void *dest, const void *src, ntfs_size_t n)
 {
-	return memmove(dest, src, n);
+	memmove(dest, src, n);
 }
 
-/* Warn that an error occurred. */
+/* Warn that an error occured. */
 void ntfs_error(const char *fmt,...)
 {
         va_list ap;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov