From 48dde0874843d83152b4ca9c5eb1c9eeb5e448ca Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 10 Jun 2015 14:57:52 +0000 Subject: Drop unnecessary casts after fixing constness of the prototypes. --- devel/elf/distinfo | 4 +++- devel/elf/patches/patch-include_command.h | 13 +++++++++++++ devel/elf/patches/patch-src_main.c | 26 ++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 devel/elf/patches/patch-include_command.h create mode 100644 devel/elf/patches/patch-src_main.c (limited to 'devel') diff --git a/devel/elf/distinfo b/devel/elf/distinfo index 8625ebd8d3c..9babe170146 100644 --- a/devel/elf/distinfo +++ b/devel/elf/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2013/10/16 12:32:34 roy Exp $ +$NetBSD: distinfo,v 1.6 2015/06/10 14:57:52 joerg Exp $ SHA1 (elf-0.5.3.tar.gz) = 7cf3ea7d098b239c7b70405a2641dfcd55a49c37 RMD160 (elf-0.5.3.tar.gz) = f3198b4183c9bd6d288013847e525c21c972afff @@ -6,3 +6,5 @@ Size (elf-0.5.3.tar.gz) = 43552 bytes SHA1 (patch-aa) = a8e3d3e981e14fc3b3d51d7a9113f8a75225f2dc SHA1 (patch-configure) = ece37ad216857d56b6e4e67d593871c798626f75 SHA1 (patch-configure.in) = 0347b9e69632e12018e40e50c66d8a141346b2a3 +SHA1 (patch-include_command.h) = 1797fa9010bbc04970c2a36a71f0c2ceb7085474 +SHA1 (patch-src_main.c) = a52da4f884bb62d62ce95af5ed9ad81acaeee7bc diff --git a/devel/elf/patches/patch-include_command.h b/devel/elf/patches/patch-include_command.h new file mode 100644 index 00000000000..1b071d5a544 --- /dev/null +++ b/devel/elf/patches/patch-include_command.h @@ -0,0 +1,13 @@ +$NetBSD: patch-include_command.h,v 1.1 2015/06/10 14:57:52 joerg Exp $ + +--- include/command.h.orig 2015-06-09 23:23:54.000000000 +0000 ++++ include/command.h +@@ -10,6 +10,6 @@ char *commands[] = { + }; + + void initrl(void); +-char **completion(char *, int, int); +-char *match(char *, int); ++char **completion(const char *, int, int); ++char *match(const char *, int); + char **find_command(char *); diff --git a/devel/elf/patches/patch-src_main.c b/devel/elf/patches/patch-src_main.c new file mode 100644 index 00000000000..a770654472a --- /dev/null +++ b/devel/elf/patches/patch-src_main.c @@ -0,0 +1,26 @@ +$NetBSD: patch-src_main.c,v 1.1 2015/06/10 14:57:52 joerg Exp $ + +--- src/main.c.orig 2015-06-09 23:23:22.000000000 +0000 ++++ src/main.c +@@ -594,18 +594,18 @@ char **find_command(char *name){ + + + void initrl(void){ +- rl_attempted_completion_function=(CPPFunction *)completion; ++ rl_attempted_completion_function=completion; + } + + +-char **completion(char *text, int start, int end){ ++char **completion(const char *text, int start, int end){ + char **matches=(char **)NULL; + + if(!start) matches=(char **)completion_matches(text, match); + return matches; + } + +-char *match(char *text, int state){ ++char *match(const char *text, int state){ + static int i, len; + + if(!state){ -- cgit v1.2.3