In preparation for the readline 4.3 import.
ok pval@
This commit is contained in:
parent
181c99970f
commit
4848056064
21
audio/id3ed/patches/patch-id3ed_cc
Normal file
21
audio/id3ed/patches/patch-id3ed_cc
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-id3ed_cc,v 1.1 2004/05/08 22:20:43 kettenis Exp $
|
||||
--- id3ed.cc.orig 2003-01-10 04:03:13.000000000 +0100
|
||||
+++ id3ed.cc 2004-05-08 11:27:16.000000000 +0200
|
||||
@@ -354,7 +354,7 @@ void genreedit(unsigned char &d){
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
char *str=NULL;
|
||||
my_rl_default=def;
|
||||
- rl_startup_hook=(Function*)set_rl_default;
|
||||
+ (int (*)())rl_startup_hook=(Function*)set_rl_default;
|
||||
#ifdef HAVE_SET_H
|
||||
(const char *(*)(const char *,int))rl_completion_entry_function=genre_generator;
|
||||
#endif
|
||||
@@ -404,7 +404,7 @@ void stredit(const char * name, int maxl
|
||||
char *str;
|
||||
sprintf(prompt,"%s[max:%i]: ",name,maxlen);
|
||||
my_rl_default=def;
|
||||
- rl_startup_hook=(Function*)set_rl_default;
|
||||
+ (int (*)())rl_startup_hook=(Function*)set_rl_default;
|
||||
if((str=readline(prompt))){
|
||||
strncpy(buf,str,maxlen);
|
||||
if (*str){
|
Loading…
Reference in New Issue
Block a user