From 008039902160731a0c02ca027af4a75766297097 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 3 Oct 2016 15:08:21 +0200 Subject: [PATCH] Fix build on FreeBSD --- libr/debug/p/debug_native.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libr/debug/p/debug_native.c b/libr/debug/p/debug_native.c index 94aa07fef3..d2e89f3723 100755 --- a/libr/debug/p/debug_native.c +++ b/libr/debug/p/debug_native.c @@ -804,7 +804,9 @@ static RList *r_debug_native_sysctl_map (RDebug *dbg) { if (sysctl (mib, 4, NULL, &len, NULL, 0) != 0) return NULL; len = len * 4 / 3; buf = malloc(len); - if (!buf) {return NULL}; + if (!buf) { + return NULL; + } if (sysctl (mib, 4, buf, &len, NULL, 0) != 0) { free (buf); return NULL; @@ -1425,7 +1427,9 @@ static RList *r_debug_desc_native_list (int pid) { if (sysctl (mib, 4, NULL, &len, NULL, 0) != 0) return NULL; len = len * 4 / 3; buf = malloc(len); - if (!buf) {return NULL}; + if (!buf) { + return NULL; + } if (sysctl (mib, 4, buf, &len, NULL, 0) != 0) { free (buf); return NULL;