/pidgin/main: fb20cfee648a: Merge release-2.x.y
Tomasz Wasilczyk
twasilczyk at pidgin.im
Fri Feb 28 14:57:20 EST 2014
Changeset: fb20cfee648a32221ec275b9b3a73ecf7d149a3a
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-02-28 20:56 +0100
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/fb20cfee648a
Description:
Merge release-2.x.y
diffstat:
ChangeLog | 4 ++++
libpurple/protocols/gg/Makefile.mingw | 2 +-
libpurple/protocols/gg/lib/protobuf-c.c | 21 +++++++++++++++------
3 files changed, 20 insertions(+), 7 deletions(-)
diffs (109 lines):
diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -68,9 +68,13 @@ version 3.0.0 (??/??/????):
* Ciphers are now built from the libpurple directory.
* Doxygen has been replaced by gtk-doc for generating documentation.
+version 2.10.10 (?/?/?):
Finch:
* Fix build against Python 3. (Ed Catmur) (#15969)
+ Gadu-Gadu:
+ * Updated internal libgadu to version 1.12.0-rc2.
+
version 2.10.9 (2/2/2014):
XMPP:
* Fix problems logging into some servers including jabber.org and
diff --git a/libpurple/protocols/gg/Makefile.mingw b/libpurple/protocols/gg/Makefile.mingw
--- a/libpurple/protocols/gg/Makefile.mingw
+++ b/libpurple/protocols/gg/Makefile.mingw
@@ -8,7 +8,7 @@ PIDGIN_TREE_TOP := ../../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
TARGET = libgg
-CFLAGS += -include win32dep.h -DGG_IGNORE_DEPRECATED
+CFLAGS += -DGG_IGNORE_DEPRECATED
TYPE = PLUGIN
# Static or Plugin...
diff --git a/libpurple/protocols/gg/lib/protobuf-c.c b/libpurple/protocols/gg/lib/protobuf-c.c
--- a/libpurple/protocols/gg/lib/protobuf-c.c
+++ b/libpurple/protocols/gg/lib/protobuf-c.c
@@ -58,6 +58,14 @@
* use size_t consistently
*/
+#include "config.h"
+#define HAVE_PROTOBUF_C_CONFIG_H 0
+#ifdef GG_CONFIG_BIGENDIAN
+# define IS_LITTLE_ENDIAN 0
+#else
+# define IS_LITTLE_ENDIAN 1
+#endif
+
#if HAVE_PROTOBUF_C_CONFIG_H
#include "protobuf-c-config.h"
#endif
@@ -371,7 +379,7 @@ required_field_get_packed_size (const Pr
case PROTOBUF_C_TYPE_DOUBLE:
return rv + 8;
case PROTOBUF_C_TYPE_ENUM:
- // TODO: is this correct for negative-valued enums?
+ /* TODO: is this correct for negative-valued enums? */
return rv + uint32_size (*(const uint32_t *) member);
case PROTOBUF_C_TYPE_STRING:
{
@@ -384,7 +392,7 @@ required_field_get_packed_size (const Pr
size_t len = ((const ProtobufCBinaryData*) member)->len;
return rv + uint32_size (len) + len;
}
- //case PROTOBUF_C_TYPE_GROUP:
+ /* case PROTOBUF_C_TYPE_GROUP: */
case PROTOBUF_C_TYPE_MESSAGE:
{
const ProtobufCMessage *msg = * (ProtobufCMessage * const *) member;
@@ -496,7 +504,7 @@ repeated_field_get_packed_size (const Pr
rv += uint32_size (len) + len;
}
break;
- //case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED
+ /* case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED */
}
if (field->packed)
header_size += uint32_size (rv);
@@ -798,7 +806,7 @@ required_field_pack (const ProtobufCFiel
out[0] |= PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED;
return rv + binary_data_pack (bd, out + rv);
}
- //case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED
+ /* case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED */
case PROTOBUF_C_TYPE_MESSAGE:
{
out[0] |= PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED;
@@ -1143,7 +1151,7 @@ required_field_pack_to_buffer (const Pro
rv += sublen;
break;
}
- //PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED
+ /* PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED */
case PROTOBUF_C_TYPE_MESSAGE:
{
uint8_t simple_buffer_scratch[256];
@@ -1812,7 +1820,7 @@ parse_required_member (ScannedMember *sc
bd->len = len - pref_len;
return 1;
}
- //case PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED
+ /* case PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED */
case PROTOBUF_C_TYPE_MESSAGE:
if (wire_type != PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED)
return 0;
@@ -2205,6 +2213,7 @@ protobuf_c_message_unpack (const
size_t used = parse_tag_and_wiretype (rem, at, &tag, &wire_type);
const ProtobufCFieldDescriptor *field;
ScannedMember tmp;
+ memset(&tmp, 0, sizeof(ScannedMember));
if (used == 0)
{
UNPACK_ERROR (("error parsing tag/wiretype at offset %u",
More information about the Commits
mailing list