tinycbor; fix style.

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/ba813559
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/ba813559
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/ba813559

Branch: refs/heads/develop
Commit: ba813559b4f013ffb24c608df19d90ab0a7d9021
Parents: 0395a1c
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Dec 9 14:18:35 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Dec 9 14:18:35 2016 -0800

----------------------------------------------------------------------
 encoding/tinycbor/include/tinycbor/cbor_mbuf_writer.h | 4 +---
 encoding/tinycbor/src/cbor_mbuf_writer.c              | 6 ++++--
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ba813559/encoding/tinycbor/include/tinycbor/cbor_mbuf_writer.h
----------------------------------------------------------------------
diff --git a/encoding/tinycbor/include/tinycbor/cbor_mbuf_writer.h 
b/encoding/tinycbor/include/tinycbor/cbor_mbuf_writer.h
index 11bc5cc..2c904e5 100644
--- a/encoding/tinycbor/include/tinycbor/cbor_mbuf_writer.h
+++ b/encoding/tinycbor/include/tinycbor/cbor_mbuf_writer.h
@@ -24,14 +24,12 @@
 extern "C" {
 #endif
 
-
 struct CborMbufWriter {
     struct cbor_encoder_writer enc;
     struct os_mbuf *m;
 };
 
-void
-cbor_mbuf_writer_init(struct CborMbufWriter *cb, struct os_mbuf *m);
+void cbor_mbuf_writer_init(struct CborMbufWriter *cb, struct os_mbuf *m);
 
 #ifdef __cplusplus
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ba813559/encoding/tinycbor/src/cbor_mbuf_writer.c
----------------------------------------------------------------------
diff --git a/encoding/tinycbor/src/cbor_mbuf_writer.c 
b/encoding/tinycbor/src/cbor_mbuf_writer.c
index 59570c5..119193c 100644
--- a/encoding/tinycbor/src/cbor_mbuf_writer.c
+++ b/encoding/tinycbor/src/cbor_mbuf_writer.c
@@ -23,7 +23,8 @@
 #include <tinycbor/cbor_mbuf_writer.h>
 
 int
-cbor_mbuf_writer(struct cbor_encoder_writer *arg, const char *data, int len) {
+cbor_mbuf_writer(struct cbor_encoder_writer *arg, const char *data, int len)
+{
     int rc;
     struct CborMbufWriter *cb = (struct CborMbufWriter *) arg;
     rc = os_mbuf_append(cb->m, data, len);
@@ -38,7 +39,8 @@ cbor_mbuf_writer(struct cbor_encoder_writer *arg, const char 
*data, int len) {
 
 
 void
-cbor_mbuf_writer_init(struct CborMbufWriter *cb, struct os_mbuf *m) {
+cbor_mbuf_writer_init(struct CborMbufWriter *cb, struct os_mbuf *m)
+{
     cb->m = m;
     cb->enc.bytes_written = 0;
     cb->enc.write = &cbor_mbuf_writer;

Reply via email to