]> git.pld-linux.org Git - packages/asterisk.git/blob - libedit-history.patch
- don't build ais module
[packages/asterisk.git] / libedit-history.patch
1 --- asterisk-1.6.1.12/main/asterisk.c~  2009-12-30 23:34:17.000000000 +0200
2 +++ asterisk-1.6.1.12/main/asterisk.c   2009-12-30 23:34:19.095481746 +0200
3 @@ -110,7 +110,7 @@
4  #include "asterisk/utils.h"
5  #include "asterisk/file.h"
6  #include "asterisk/io.h"
7 -#include "editline/histedit.h"
8 +#include <histedit.h>
9  #include "asterisk/config.h"
10  #include "asterisk/ast_version.h"
11  #include "asterisk/linkedlists.h"
12 @@ -2291,7 +2291,7 @@
13                         int mlen = 0, maxmbuf = 2048;
14                         /* Start with a 2048 byte buffer */                     
15                         if (!(mbuf = ast_malloc(maxmbuf))) {
16 -                               lf->cursor[0] = savechr;
17 +//                             lf->cursor[0] = savechr; // this is readonly variable
18                                 return (char *)(CC_ERROR);
19                         }
20                         snprintf(buf, sizeof(buf), "_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr); 
21 @@ -2303,7 +2303,7 @@
22                                         /* Every step increment buffer 1024 bytes */
23                                         maxmbuf += 1024;                                        
24                                         if (!(mbuf = ast_realloc(mbuf, maxmbuf))) {
25 -                                               lf->cursor[0] = savechr;
26 +//                                             lf->cursor[0] = savechr; // this is readonly variable
27                                                 return (char *)(CC_ERROR);
28                                         }
29                                 }
30 @@ -2365,7 +2365,7 @@
31                 ast_free(matches);
32         }
33  
34 -       lf->cursor[0] = savechr;
35 +//     lf->cursor[0] = savechr; // this is readonly variable
36  
37         return (char *)(long)retval;
38  }
This page took 0.031426 seconds and 3 git commands to generate.