falconia submitted this change.

View Change


Approvals: tnt: Looks good to me, approved Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve
mux_demux.c cosmetic: fix indent level in _e1_tx_raw()

Change-Id: Ie0674d6500c9f66b58a7fca8bf28dada035d28d0
---
M src/mux_demux.c
1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/src/mux_demux.c b/src/mux_demux.c
index dd8ca45..a0ae717 100644
--- a/src/mux_demux.c
+++ b/src/mux_demux.c
@@ -48,19 +48,19 @@
static int
_e1_tx_raw(struct e1_ts *ts, uint8_t *buf, int len)
{
- int l;
+ int l;

- l = read(ts->fd, buf, len);
- /* FIXME: handle underflow */
+ l = read(ts->fd, buf, len);
+ /* FIXME: handle underflow */

- /* If we're not started yet, we 'fake' data until the other side
- * send something */
- if (l < 0 && errno == EAGAIN && !ts->raw.tx_started)
- return len;
+ /* If we're not started yet, we 'fake' data until the other side
+ * send something */
+ if (l < 0 && errno == EAGAIN && !ts->raw.tx_started)
+ return len;

- ts->raw.tx_started = true;
+ ts->raw.tx_started = true;

- return l;
+ return l;
}

static int

To view, visit change 37320. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ie0674d6500c9f66b58a7fca8bf28dada035d28d0
Gerrit-Change-Number: 37320
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon@freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: falconia <falcon@freecalypso.org>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: tnt <tnt@246tNt.com>
Gerrit-MessageType: merged