summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-07 10:42:48 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-07 10:42:48 +0100
commitf3a4197e349ec7441f2b4dfe6e3010bbfe400164 (patch)
tree88352537a1dae2a182ea5cc792c25b4fd4cdb45e /src/pacman/util.h
parent6c3657b7022c7873fca38b30796e7659b7580b34 (diff)
downloadpacman-f3a4197e349ec7441f2b4dfe6e3010bbfe400164.tar.gz
pacman-f3a4197e349ec7441f2b4dfe6e3010bbfe400164.tar.xz
code cleanup (mainly removed line spaces at the beginning of lines by tabulations)
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r--src/pacman/util.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h
index b4a9d130..f9d8d847 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -21,10 +21,17 @@
#ifndef _PM_UTIL_H
#define _PM_UTIL_H
-#define MALLOC(p, b) do { if((b) > 0) { \
- p = malloc(b); if (!(p)) { \
- fprintf(stderr, "malloc failure: could not allocate %d bytes\n", b); \
- exit(1); }} else p = NULL; } while(0)
+#define MALLOC(p, b) do { \
+ if((b) > 0) { \
+ p = malloc(b); \
+ if (!(p)) { \
+ fprintf(stderr, "malloc failure: could not allocate %d bytes\n", b); \
+ exit(1); \
+ } \
+ } else { \
+ p = NULL; \
+ } \
+} while(0)
#define FREE(p) do { if (p) { free(p); (p) = NULL; }} while(0)