1 |
binki 11/09/30 03:38:22 |
2 |
|
3 |
Added: |
4 |
atheme-services-7.0.0_alpha7-xmlrpc-mowgli-string.patch |
5 |
atheme-services-7.0.0_alpha7-mowgli-strl.patch |
6 |
Log: |
7 |
Bump to atheme-services-7.0.0_alpha7 with patches pulled from git allowing it to compile. |
8 |
|
9 |
(Portage version: 2.2.0_alpha55-r1/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 net-irc/atheme-services/files/atheme-services-7.0.0_alpha7-xmlrpc-mowgli-string.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/files/atheme-services-7.0.0_alpha7-xmlrpc-mowgli-string.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/files/atheme-services-7.0.0_alpha7-xmlrpc-mowgli-string.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: atheme-services-7.0.0_alpha7-xmlrpc-mowgli-string.patch |
18 |
=================================================================== |
19 |
From 7759002d4f84301541e8b6e5eb4c7a20d559d98d Mon Sep 17 00:00:00 2001 |
20 |
From: William Pitcock <nenolod@××××××××××××.org> |
21 |
Date: Wed, 31 Aug 2011 00:57:22 -0500 |
22 |
Subject: [PATCH] transport/xmlrpc: unbreak build |
23 |
|
24 |
--- |
25 |
modules/transport/xmlrpc/xmlrpclib.c | 17 ++++++++++------- |
26 |
1 files changed, 10 insertions(+), 7 deletions(-) |
27 |
|
28 |
diff --git a/modules/transport/xmlrpc/xmlrpclib.c b/modules/transport/xmlrpc/xmlrpclib.c |
29 |
index c708985..11e3b7a 100644 |
30 |
--- a/modules/transport/xmlrpc/xmlrpclib.c |
31 |
+++ b/modules/transport/xmlrpc/xmlrpclib.c |
32 |
@@ -315,7 +315,7 @@ void xmlrpc_generic_error(int code, const char *string) |
33 |
{ |
34 |
char buf[1024]; |
35 |
const char *ss; |
36 |
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE); |
37 |
+ mowgli_string_t *s = mowgli_string_create(); |
38 |
char *s2; |
39 |
int len; |
40 |
|
41 |
@@ -353,7 +353,8 @@ void xmlrpc_generic_error(int code, const char *string) |
42 |
} |
43 |
else |
44 |
xmlrpc.setbuffer(s->str, len); |
45 |
- s->delete(s); |
46 |
+ |
47 |
+ s->destroy(s); |
48 |
} |
49 |
|
50 |
/*************************************************************************/ |
51 |
@@ -387,7 +388,7 @@ void xmlrpc_send(int argc, ...) |
52 |
int len; |
53 |
char buf[1024]; |
54 |
const char *ss; |
55 |
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE); |
56 |
+ mowgli_string_t *s = mowgli_string_create(); |
57 |
char *s2; |
58 |
char *header; |
59 |
|
60 |
@@ -438,7 +439,8 @@ void xmlrpc_send(int argc, ...) |
61 |
free(xmlrpc.encode); |
62 |
xmlrpc.encode = NULL; |
63 |
} |
64 |
- s->delete(s); |
65 |
+ |
66 |
+ s->destroy(s); |
67 |
} |
68 |
|
69 |
/*************************************************************************/ |
70 |
@@ -448,7 +450,7 @@ void xmlrpc_send_string(const char *value) |
71 |
int len; |
72 |
char buf[1024]; |
73 |
const char *ss; |
74 |
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE); |
75 |
+ mowgli_string_t *s = mowgli_string_create(); |
76 |
char *s2; |
77 |
char *header; |
78 |
|
79 |
@@ -493,7 +495,8 @@ void xmlrpc_send_string(const char *value) |
80 |
free(xmlrpc.encode); |
81 |
xmlrpc.encode = NULL; |
82 |
} |
83 |
- s->delete(s); |
84 |
+ |
85 |
+ s->destroy(s); |
86 |
} |
87 |
|
88 |
/*************************************************************************/ |
89 |
@@ -736,7 +739,7 @@ void xmlrpc_char_encode(char *outbuffer, const char *s1) |
90 |
long unsigned int i; |
91 |
unsigned char c; |
92 |
char buf2[15]; |
93 |
- mowgli_string_t *s = mowgli_string_create(XMLRPC_BUFSIZE); |
94 |
+ mowgli_string_t *s = mowgli_string_create(); |
95 |
*buf2 = '\0'; |
96 |
*outbuffer = '\0'; |
97 |
|
98 |
-- |
99 |
1.7.3.4 |
100 |
|
101 |
|
102 |
|
103 |
|
104 |
1.1 net-irc/atheme-services/files/atheme-services-7.0.0_alpha7-mowgli-strl.patch |
105 |
|
106 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/files/atheme-services-7.0.0_alpha7-mowgli-strl.patch?rev=1.1&view=markup |
107 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/files/atheme-services-7.0.0_alpha7-mowgli-strl.patch?rev=1.1&content-type=text/plain |
108 |
|
109 |
Index: atheme-services-7.0.0_alpha7-mowgli-strl.patch |
110 |
=================================================================== |
111 |
From e933fc04fea4636325fbe60c769e1e20da74496c Mon Sep 17 00:00:00 2001 |
112 |
From: JD Horelick <jdhore1@×××××.com> |
113 |
Date: Wed, 31 Aug 2011 03:09:11 -0400 |
114 |
Subject: [PATCH] hostserv|rpgserv: Change some code in headers to use mowgli_strlcpy() and mowgli_strlcat(). |
115 |
|
116 |
--- |
117 |
modules/hostserv/hostserv.h | 2 +- |
118 |
modules/rpgserv/prettyprint.h | 6 +++--- |
119 |
2 files changed, 4 insertions(+), 4 deletions(-) |
120 |
|
121 |
diff --git a/modules/hostserv/hostserv.h b/modules/hostserv/hostserv.h |
122 |
index 10ec4de..953105a 100644 |
123 |
--- a/modules/hostserv/hostserv.h |
124 |
+++ b/modules/hostserv/hostserv.h |
125 |
@@ -31,7 +31,7 @@ static inline void do_sethost(user_t *u, char *host) |
126 |
return; |
127 |
|
128 |
svs = service_find("hostserv"); |
129 |
- strlcpy(u->vhost, host ? host : u->host, HOSTLEN); |
130 |
+ mowgli_strlcpy(u->vhost, host ? host : u->host, HOSTLEN); |
131 |
user_sethost(svs->me, u, u->vhost); |
132 |
} |
133 |
|
134 |
diff --git a/modules/rpgserv/prettyprint.h b/modules/rpgserv/prettyprint.h |
135 |
index e643608..362eef6 100644 |
136 |
--- a/modules/rpgserv/prettyprint.h |
137 |
+++ b/modules/rpgserv/prettyprint.h |
138 |
@@ -70,7 +70,7 @@ static inline const char *rs_prettyprint_keywords(metadata_t *md, const char **k |
139 |
|
140 |
*ppbuf = '\0'; |
141 |
|
142 |
- strlcpy(parsebuf, md->value, BUFSIZE); |
143 |
+ mowgli_strlcpy(parsebuf, md->value, BUFSIZE); |
144 |
|
145 |
keyword = strtok_r(parsebuf, " ", &pos); |
146 |
if (keyword == NULL) |
147 |
@@ -85,9 +85,9 @@ static inline const char *rs_prettyprint_keywords(metadata_t *md, const char **k |
148 |
if (!strcasecmp(keyword, keys[i])) |
149 |
{ |
150 |
if (*ppbuf != '\0') |
151 |
- strlcat(ppbuf, ", ", BUFSIZE); |
152 |
+ mowgli_strlcat(ppbuf, ", ", BUFSIZE); |
153 |
|
154 |
- strlcat(ppbuf, values[i], BUFSIZE); |
155 |
+ mowgli_strlcat(ppbuf, values[i], BUFSIZE); |
156 |
} |
157 |
} |
158 |
} |
159 |
-- |
160 |
1.7.3.4 |