1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
From 7759002d4f84301541e8b6e5eb4c7a20d559d98d Mon Sep 17 00:00:00 2001
From: William Pitcock <nenolod@dereferenced.org>
Date: Wed, 31 Aug 2011 00:57:22 -0500
Subject: [PATCH] transport/xmlrpc: unbreak build
---
modules/transport/xmlrpc/xmlrpclib.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/modules/transport/xmlrpc/xmlrpclib.c b/modules/transport/xmlrpc/xmlrpclib.c
index c708985..11e3b7a 100644
--- a/modules/transport/xmlrpc/xmlrpclib.c
+++ b/modules/transport/xmlrpc/xmlrpclib.c
@@ -315,7 +315,7 @@ void xmlrpc_generic_error(int code, const char *string)
{
char buf[1024];
const char *ss;
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE);
+ mowgli_string_t *s = mowgli_string_create();
char *s2;
int len;
@@ -353,7 +353,8 @@ void xmlrpc_generic_error(int code, const char *string)
}
else
xmlrpc.setbuffer(s->str, len);
- s->delete(s);
+
+ s->destroy(s);
}
/*************************************************************************/
@@ -387,7 +388,7 @@ void xmlrpc_send(int argc, ...)
int len;
char buf[1024];
const char *ss;
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE);
+ mowgli_string_t *s = mowgli_string_create();
char *s2;
char *header;
@@ -438,7 +439,8 @@ void xmlrpc_send(int argc, ...)
free(xmlrpc.encode);
xmlrpc.encode = NULL;
}
- s->delete(s);
+
+ s->destroy(s);
}
/*************************************************************************/
@@ -448,7 +450,7 @@ void xmlrpc_send_string(const char *value)
int len;
char buf[1024];
const char *ss;
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE);
+ mowgli_string_t *s = mowgli_string_create();
char *s2;
char *header;
@@ -493,7 +495,8 @@ void xmlrpc_send_string(const char *value)
free(xmlrpc.encode);
xmlrpc.encode = NULL;
}
- s->delete(s);
+
+ s->destroy(s);
}
/*************************************************************************/
@@ -736,7 +739,7 @@ void xmlrpc_char_encode(char *outbuffer, const char *s1)
long unsigned int i;
unsigned char c;
char buf2[15];
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE);
+ mowgli_string_t *s = mowgli_string_create();
*buf2 = '\0';
*outbuffer = '\0';
--
1.7.3.4
|