commit 1bc35ab9741ab65104ae15cbed0f7587b549d09c
parent e3401afa64386ee919db223ec96b609307a1ad6a
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 14 Jan 2011 18:20:19 +0000
fixes
Diffstat:
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+Fri Jan 14 19:19:45 CET 2011
+ Removing dead code, adding missing new symbols to export list. -CG
+
Mon Jan 10 14:07:33 CET 2011
Releasing libmicrohttpd 0.9.5. -CG
diff --git a/src/daemon/EXPORT.sym b/src/daemon/EXPORT.sym
@@ -11,6 +11,8 @@ MHD_queue_response
MHD_create_response_from_callback
MHD_create_response_from_data
MHD_create_response_from_fd
+MHD_create_response_from_fd_at_offset
+MHD_create_response_from_buffer
MHD_destroy_response
MHD_add_response_header
MHD_add_response_footer
diff --git a/src/daemon/base64.c b/src/daemon/base64.c
@@ -27,11 +27,14 @@ static const char base64_digits[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+#if 0
char* BASE64Encode(const char* src) {
unsigned int in_len = strlen(src);
- char* dest = (char*)malloc((in_len + 2 - ((in_len + 2) % 3)) / 3 * 4 + 1);
+ char* dest = malloc((in_len + 2 - ((in_len + 2) % 3)) / 3 * 4 + 1);
char* result = dest;
+ if (dest == NULL)
+ return NULL;
while (*src) {
dest[0] = base64_chars[(src[0] & 0xfc) >> 2];
dest[1] = base64_chars[((src[0] & 0x03) << 4) + ((src[1] & 0xf0) >> 4)];
@@ -54,6 +57,7 @@ char* BASE64Encode(const char* src) {
return result;
}
+#endif
char* BASE64Decode(const char* src) {
unsigned int in_len = strlen(src);