openbsd-ports/devel/protobuf-c/patches/patch-src_google_protobuf-c_protobuf-c-rpc_c
dcoppa 93c093c24e Import devel/protobuf-c, a C implementation of google protocol
buffers.

This is a new dependency of an upcoming update of audio/umurmur.

Tested by Jonathon Sisson, who also takes maintainership
OK ajacoutot@
2011-07-08 08:58:02 +00:00

15 lines
679 B
Plaintext

$OpenBSD: patch-src_google_protobuf-c_protobuf-c-rpc_c,v 1.1.1.1 2011/07/08 08:58:02 dcoppa Exp $
Remove incorrect assertion (upstream svn revision r281)
--- src/google/protobuf-c/protobuf-c-rpc.c.orig Thu Jul 7 12:24:56 2011
+++ src/google/protobuf-c/protobuf-c-rpc.c Thu Jul 7 12:25:24 2011
@@ -476,7 +476,6 @@ enqueue_request (ProtobufC_RPC_Client *client,
protobuf_c_assert (method_index < desc->n_methods);
/* Allocate request_id */
- protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_CONNECTED);
if (client->info.connected.first_free_request_id == 0)
grow_closure_array (client);
request_id = client->info.connected.first_free_request_id;