Changes by: uvman
Update of /cvs/linux-ntfs/ntfsprogs/include/ntfs
In directory delta357:/tmp/cvs-serv29732/include/ntfs
Modified Files:
support.h
Log Message:
Introduce misc.c - Proud home of functions with no other home, starting with ntfs_[mc]alloc. (Szaka)
Index: support.h
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/include/ntfs/support.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- support.h 27 Oct 2006 12:24:30 -0000 1.12
+++ support.h 1 Nov 2006 12:31:11 -0000 1.13
@@ -96,29 +96,4 @@
old_state; \
})
-/**
- * ntfs_calloc, ntfs_malloc
- *
- * Return a pointer to the allocated memory or NULL if the request fails.
- */
-static inline void *ntfs_calloc(size_t size)
-{
- void *p;
-
- p = calloc(1, size);
- if (!p)
- ntfs_log_perror("Failed to calloc %lld bytes", (long long)size);
- return p;
-}
-
-static inline void *ntfs_malloc(size_t size)
-{
- void *p;
-
- p = malloc(size);
- if (!p)
- ntfs_log_perror("Failed to malloc %lld bytes", (long long)size);
- return p;
-}
-
#endif /* defined _NTFS_SUPPORT_H */
|