]> git.pld-linux.org Git - packages/asterisk.git/blobdiff - libedit-history.patch
patches updated for Asterisk 12
[packages/asterisk.git] / libedit-history.patch
diff --git a/libedit-history.patch b/libedit-history.patch
deleted file mode 100644 (file)
index c667596..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
---- asterisk-1.6.1.12/main/asterisk.c~ 2009-12-30 23:34:17.000000000 +0200
-+++ asterisk-1.6.1.12/main/asterisk.c  2009-12-30 23:34:19.095481746 +0200
-@@ -110,7 +110,7 @@
- #include "asterisk/utils.h"
- #include "asterisk/file.h"
- #include "asterisk/io.h"
--#include "editline/histedit.h"
-+#include <histedit.h>
- #include "asterisk/config.h"
- #include "asterisk/ast_version.h"
- #include "asterisk/linkedlists.h"
-@@ -2291,7 +2291,7 @@
-                       int mlen = 0, maxmbuf = 2048;
-                       /* Start with a 2048 byte buffer */                     
-                       if (!(mbuf = ast_malloc(maxmbuf))) {
--                              lf->cursor[0] = savechr;
-+//                            lf->cursor[0] = savechr; // this is readonly variable
-                               return (char *)(CC_ERROR);
-                       }
-                       snprintf(buf, sizeof(buf), "_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr); 
-@@ -2303,7 +2303,7 @@
-                                       /* Every step increment buffer 1024 bytes */
-                                       maxmbuf += 1024;                                        
-                                       if (!(mbuf = ast_realloc(mbuf, maxmbuf))) {
--                                              lf->cursor[0] = savechr;
-+//                                            lf->cursor[0] = savechr; // this is readonly variable
-                                               return (char *)(CC_ERROR);
-                                       }
-                               }
-@@ -2365,7 +2365,7 @@
-               ast_free(matches);
-       }
--      lf->cursor[0] = savechr;
-+//    lf->cursor[0] = savechr; // this is readonly variable
-       return (char *)(long)retval;
- }
This page took 0.054146 seconds and 4 git commands to generate.