summaryrefslogtreecommitdiff
path: root/devel/libexecinfo/patches
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2014-05-04 11:09:56 +0000
committerhauke <hauke@pkgsrc.org>2014-05-04 11:09:56 +0000
commitac782e821949d38618f3e3df58e7e7ea7a545cab (patch)
tree5c8c125a7c13be2eac88b40768858ee7aeeedfa8 /devel/libexecinfo/patches
parent4690d167456860659568c8b6c81e82f77d267c63 (diff)
downloadpkgsrc-ac782e821949d38618f3e3df58e7e7ea7a545cab.tar.gz
GC an unused variable the compiler takes offence to.
Diffstat (limited to 'devel/libexecinfo/patches')
-rw-r--r--devel/libexecinfo/patches/patch-execinfo.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/devel/libexecinfo/patches/patch-execinfo.c b/devel/libexecinfo/patches/patch-execinfo.c
index d6c9052133f..2c5440cba17 100644
--- a/devel/libexecinfo/patches/patch-execinfo.c
+++ b/devel/libexecinfo/patches/patch-execinfo.c
@@ -1,6 +1,4 @@
-$NetBSD: patch-execinfo.c,v 1.2 2013/10/24 11:34:49 jperkin Exp $
-
-Patch from FreeBSD ports devel/libexecinfo. Makes execinfo.c compilable
+$NetBSD: patch-execinfo.c,v 1.3 2014/05/04 11:09:56 hauke Exp $
--- execinfo.c.orig 2004-07-19 05:21:09.000000000 +0000
+++ execinfo.c
@@ -15,7 +13,7 @@ Patch from FreeBSD ports devel/libexecinfo. Makes execinfo.c compilable
#include "execinfo.h"
#include "stacktraverse.h"
-@@ -69,7 +73,8 @@ backtrace(void **buffer, int size)
+@@ -69,16 +73,15 @@ backtrace(void **buffer, int size)
char **
backtrace_symbols(void *const *buffer, int size)
{
@@ -23,9 +21,10 @@ Patch from FreeBSD ports devel/libexecinfo. Makes execinfo.c compilable
+ size_t clen, alen;
+ int i, offset;
char **rval;
- char *cp;
+- char *cp;
Dl_info info;
-@@ -78,7 +83,6 @@ backtrace_symbols(void *const *buffer, i
+
+ clen = size * sizeof(char *);
rval = malloc(clen);
if (rval == NULL)
return NULL;
@@ -33,7 +32,7 @@ Patch from FreeBSD ports devel/libexecinfo. Makes execinfo.c compilable
for (i = 0; i < size; i++) {
if (dladdr(buffer[i], &info) != 0) {
if (info.dli_sname == NULL)
-@@ -92,14 +96,14 @@ backtrace_symbols(void *const *buffer, i
+@@ -92,14 +95,14 @@ backtrace_symbols(void *const *buffer, i
2 + /* " <" */
strlen(info.dli_sname) + /* "function" */
1 + /* "+" */
@@ -50,7 +49,7 @@ Patch from FreeBSD ports devel/libexecinfo. Makes execinfo.c compilable
buffer[i], info.dli_sname, offset, info.dli_fname);
} else {
alen = 2 + /* "0x" */
-@@ -108,12 +112,15 @@ backtrace_symbols(void *const *buffer, i
+@@ -108,12 +111,15 @@ backtrace_symbols(void *const *buffer, i
rval = realloc_safe(rval, clen + alen);
if (rval == NULL)
return NULL;