summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-02-22 01:51:42 +0100
committerBruno Haible <bruno@clisp.org>2009-02-22 01:51:42 +0100
commitbdec3e410196c242757abb0a130dd929e6375615 (patch)
treeba8b129453dec6a43fa199b18c7fafce1179a3eb /lib
parentdf70a4bf4a1e84171918db09b639ae1a14c2a9b2 (diff)
downloadgnulib-bdec3e410196c242757abb0a130dd929e6375615.tar.gz
Cosmetic tweaks in the safe-alloc module.
Diffstat (limited to 'lib')
-rw-r--r--lib/safe-alloc.c5
-rw-r--r--lib/safe-alloc.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/safe-alloc.c b/lib/safe-alloc.c
index fca8754c8c..90c81be2aa 100644
--- a/lib/safe-alloc.c
+++ b/lib/safe-alloc.c
@@ -23,12 +23,13 @@
#include <config.h>
+/* Specification. */
+#include "safe-alloc.h"
+
#include <stdlib.h>
#include <stddef.h>
#include <errno.h>
-#include "safe-alloc.h"
-
/* Return 1 if an array of N objects, each of size S, cannot exist due
to size arithmetic overflow. S must be positive and N must be
diff --git a/lib/safe-alloc.h b/lib/safe-alloc.h
index 1b7847add5..3fa3f2eed8 100644
--- a/lib/safe-alloc.h
+++ b/lib/safe-alloc.h
@@ -1,5 +1,5 @@
/*
- * memory.c: safer memory allocation
+ * safe-alloc.h: safer memory allocation
*
* Copyright (C) 2009 Free Software Foundation, Inc.
*
@@ -108,7 +108,7 @@ safe_alloc_realloc_n (void *ptrptr, size_t size, size_t count)
# define FREE(ptr) \
do \
{ \
- free(ptr); \
+ free (ptr); \
(ptr) = NULL; \
} \
while(0)