diff options
author | Ji Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-03-05 18:16:56 +0000 |
---|---|---|
committer | Ji Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-03-05 18:16:56 +0000 |
commit | 8e7b848a1828ed26285fb983f7c28b2a51017983 (patch) | |
tree | 81c9e193f834527139cdaf7189541563bf964abc /src/fragmentation/fragmentation.c | |
parent | 80982ec900216a03dfef3084cc26c67f67a36015 (diff) |
fixed ==
Diffstat (limited to 'src/fragmentation/fragmentation.c')
-rw-r--r-- | src/fragmentation/fragmentation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index b52a4b9ab0..49680bf428 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c @@ -195,7 +195,7 @@ GNUNET_FRAGMENT_process (struct GNUNET_FRAGMENT_Context *ctx, } } if(!received){ - buffer->num[buffer->counter++]==ntohs(frag->off)/ntohs(frag->mtu); + buffer->num[buffer->counter++]=ntohs(frag->off)/ntohs(frag->mtu); } buffer->receivedTime = GNUNET_TIME_absolute_get (); uint16_t size = ntohs(frag->header.size); @@ -206,7 +206,7 @@ GNUNET_FRAGMENT_process (struct GNUNET_FRAGMENT_Context *ctx, if(!exited){ buffer = (struct GNUNET_FRAGEMENT_Ctxbuffer* )GNUNET_malloc(sizeof(struct GNUNET_FRAGEMENT_Ctxbuffer)); buffer->num = (int*)GNUNET_malloc(ntohs(frag->totalNum)*sizeof(int)); - buffer->num[buffer->counter++]==ntohs(frag->off)/ntohs(frag->mtu); + buffer->num[buffer->counter++]=ntohs(frag->off)/ntohs(frag->mtu); memcpy(buffer->peerID,sender,sizeof(struct GNUNET_PeerIdentity)); buffer->receivedTime = GNUNET_TIME_absolute_get (); uint16_t size = ntohs(frag->header.size); |