summaryrefslogtreecommitdiff
path: root/ptw32_calloc.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /ptw32_calloc.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'ptw32_calloc.c')
-rw-r--r--ptw32_calloc.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/ptw32_calloc.c b/ptw32_calloc.c
index 45aab88..b98df38 100644
--- a/ptw32_calloc.c
+++ b/ptw32_calloc.c
@@ -40,15 +40,17 @@
#ifdef NEED_CALLOC
void *
-ptw32_calloc(size_t n, size_t s) {
- unsigned int m = n*s;
- void *p;
-
- p = malloc(m);
- if (p == NULL) return NULL;
-
- memset(p, 0, m);
+ptw32_calloc (size_t n, size_t s)
+{
+ unsigned int m = n * s;
+ void *p;
- return p;
+ p = malloc (m);
+ if (p == NULL)
+ return NULL;
+
+ memset (p, 0, m);
+
+ return p;
}
#endif