From 19e9b95a714067fe4179d348664cbe8bd7bc8169 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Wed, 18 Sep 2013 14:50:43 +0300 Subject: [PATCH] Refactor: global.h renaming. --- src/config.c | 4 ++-- src/global.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index d6089454..faac480a 100644 --- a/src/config.c +++ b/src/config.c @@ -53,8 +53,8 @@ int config_init(config* cfg) */ int config_destroy(config* cfg) { - free_pointer(cfg->input); - free_pointer(cfg->output); + FREE_POINTER(cfg->input); + FREE_POINTER(cfg->output); free(cfg); return 1; diff --git a/src/global.h b/src/global.h index e6baf789..084ecb81 100644 --- a/src/global.h +++ b/src/global.h @@ -75,6 +75,6 @@ #define INLINE inline #endif -#define free_pointer(pointer) { free(pointer); pointer = NULL; } +#define FREE_POINTER(pointer) { free(pointer); pointer = NULL; } #endif \ No newline at end of file