OSDN Git Service

Rewrite PAN_Write in terms of PAN_WriteBuf.
authorSharvil Nanavati <sharvil@google.com>
Sat, 5 Apr 2014 06:57:10 +0000 (23:57 -0700)
committerSharvil Nanavati <sharvil@google.com>
Fri, 18 Apr 2014 00:36:21 +0000 (00:36 +0000)
commit2d5d56ead7d9dd811cf9c5ef26b16c4a0b149ade
tree45952b4580d1d534763aef967198df33504e5490
parent5c42abe7b9630914314fae86d09a117317f1633f
Rewrite PAN_Write in terms of PAN_WriteBuf.

The original code looked copy/pasted. The new implementation still
results in the same number of buffer copies but is much easier to
read and reduces redundancy.

Change-Id: I3ace395d2b124074e9687d13ae9a1b0b93a25a31
stack/pan/pan_api.c