summaryrefslogtreecommitdiffstats
path: root/libdimension/platform.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-24 16:21:58 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-24 16:22:31 -0400
commit537b7695c26b9ad83ccc13b68c78a2fb27545d7e (patch)
treea801d360354343b92600df3e3eb255ff87ab8487 /libdimension/platform.c
parent77237a2e22acfc3f8a028cd1a4d63b602cbbf45e (diff)
downloaddimension-537b7695c26b9ad83ccc13b68c78a2fb27545d7e.tar.xz
Fix some warnings found by clang.
Diffstat (limited to 'libdimension/platform.c')
-rw-r--r--libdimension/platform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/platform.c b/libdimension/platform.c
index e0de578..b5d23cc 100644
--- a/libdimension/platform.c
+++ b/libdimension/platform.c
@@ -53,10 +53,10 @@ void
dmnsn_backtrace(FILE *file)
{
#if DMNSN_BACKTRACE
- const size_t size = 128;
- void *buffer[size];
+#define DMNSN_BACKTRACE_SIZE 128
+ void *buffer[DMNSN_BACKTRACE_SIZE];
- int nptrs = backtrace(buffer, size);
+ int nptrs = backtrace(buffer, DMNSN_BACKTRACE_SIZE);
int fd = fileno(file);
if (fd != -1) {
backtrace_symbols_fd(buffer, nptrs, fd);