This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-netif/+/20820 ) Change subject: cosmetic: Fix whitespace (use tab instead of 8x space) ...................................................................... cosmetic: Fix whitespace (use tab instead of 8x space) Change-Id: I2b8d80fb771336d4d2c4a9ea1749935bdf14a37b --- M src/datagram.c M src/rs232.c M src/stream.c 3 files changed, 38 insertions(+), 38 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/20/20820/1 diff --git a/src/datagram.c b/src/datagram.c index 4bc7bed..8b68244 100644 --- a/src/datagram.c +++ b/src/datagram.c @@ -119,7 +119,7 @@ LOGP(DLINP, LOGL_DEBUG, "write\n"); osmo_dgram_tx_write(conn); } - return 0; + return 0; } /*! \brief Create an Osmocom datagram transmitter @@ -246,12 +246,12 @@ #define OSMO_DGRAM_RX_F_RECONF (1 << 0) struct osmo_dgram_rx { - struct osmo_fd ofd; - char *addr; - uint16_t port; + struct osmo_fd ofd; + char *addr; + uint16_t port; int (*cb)(struct osmo_dgram_rx *conn); - void *data; - unsigned int flags; + void *data; + unsigned int flags; }; /*! \brief Receive data via Osmocom datagram receiver diff --git a/src/rs232.c b/src/rs232.c index 8ee658a..865ec97 100644 --- a/src/rs232.c +++ b/src/rs232.c @@ -72,15 +72,15 @@ struct msgb *msg; int written; - LOGP(DLINP, LOGL_DEBUG, "writing data to rs232\n"); + LOGP(DLINP, LOGL_DEBUG, "writing data to rs232\n"); - if (llist_empty(&r->tx_queue)) { - r->ofd.when &= ~OSMO_FD_WRITE; - return 0; - } - lh = r->tx_queue.next; - llist_del(lh); - msg = llist_entry(lh, struct msgb, list); + if (llist_empty(&r->tx_queue)) { + r->ofd.when &= ~OSMO_FD_WRITE; + return 0; + } + lh = r->tx_queue.next; + llist_del(lh); + msg = llist_entry(lh, struct msgb, list); written = write(bfd->fd, msg->data, msg->len); if (written < msg->len) { @@ -254,8 +254,8 @@ void osmo_rs232_write(struct osmo_rs232 *r, struct msgb *msg) { - msgb_enqueue(&r->tx_queue, msg); - r->ofd.when |= OSMO_FD_WRITE; + msgb_enqueue(&r->tx_queue, msg); + r->ofd.when |= OSMO_FD_WRITE; } void osmo_rs232_close(struct osmo_rs232 *r) diff --git a/src/stream.c b/src/stream.c index 2bb3e75..3376126 100644 --- a/src/stream.c +++ b/src/stream.c @@ -221,15 +221,15 @@ */ enum osmo_stream_cli_state { - STREAM_CLI_STATE_CLOSED, /* No fd associated, no timer active */ - STREAM_CLI_STATE_WAIT_RECONNECT, /* No fd associated, has timer active to try to connect again */ - STREAM_CLI_STATE_CONNECTING, /* Fd associated, but connection not yet confirmed by peer or lower layers */ - STREAM_CLI_STATE_CONNECTED, /* Fd associated and connection is established */ - STREAM_CLI_STATE_MAX + STREAM_CLI_STATE_CLOSED, /* No fd associated, no timer active */ + STREAM_CLI_STATE_WAIT_RECONNECT, /* No fd associated, has timer active to try to connect again */ + STREAM_CLI_STATE_CONNECTING, /* Fd associated, but connection not yet confirmed by peer or lower layers */ + STREAM_CLI_STATE_CONNECTED, /* Fd associated and connection is established */ + STREAM_CLI_STATE_MAX }; static const struct value_string stream_cli_state_names[] = { - { STREAM_CLI_STATE_CLOSED, "CLOSED" }, + { STREAM_CLI_STATE_CLOSED, "CLOSED" }, { STREAM_CLI_STATE_WAIT_RECONNECT, "WAIT_RECONNECT" }, { STREAM_CLI_STATE_CONNECTING, "CONNECTING" }, { STREAM_CLI_STATE_CONNECTED, "CONNECTED" }, @@ -251,10 +251,10 @@ struct osmo_timer_list timer; enum osmo_stream_cli_state state; char *addr[OSMO_STREAM_MAX_ADDRS]; - uint8_t addrcnt; + uint8_t addrcnt; uint16_t port; char *local_addr[OSMO_STREAM_MAX_ADDRS]; - uint8_t local_addrcnt; + uint8_t local_addrcnt; uint16_t local_port; uint16_t proto; int (*connect_cb)(struct osmo_stream_cli *srv); @@ -422,7 +422,7 @@ /* Only CONNECTING and CONNECTED states are expected, since they are the only states where FD exists: */ osmo_panic("osmo_stream_cli_fd_cb called with unexpected state %d\n", cli->state); } - return 0; + return 0; } static void cli_timer_cb(void *data); @@ -823,14 +823,14 @@ #define OSMO_STREAM_SRV_F_NODELAY (1 << 1) struct osmo_stream_srv_link { - struct osmo_fd ofd; - char *addr[OSMO_STREAM_MAX_ADDRS]; - uint8_t addrcnt; - uint16_t port; - uint16_t proto; - int (*accept_cb)(struct osmo_stream_srv_link *srv, int fd); - void *data; - int flags; + struct osmo_fd ofd; + char *addr[OSMO_STREAM_MAX_ADDRS]; + uint8_t addrcnt; + uint16_t port; + uint16_t proto; + int (*accept_cb)(struct osmo_stream_srv_link *srv, int fd); + void *data; + int flags; }; static int osmo_stream_srv_fd_cb(struct osmo_fd *ofd, unsigned int what) @@ -1100,11 +1100,11 @@ struct osmo_stream_srv { struct osmo_stream_srv_link *srv; - struct osmo_fd ofd; - struct llist_head tx_queue; - int (*closed_cb)(struct osmo_stream_srv *peer); - int (*cb)(struct osmo_stream_srv *peer); - void *data; + struct osmo_fd ofd; + struct llist_head tx_queue; + int (*closed_cb)(struct osmo_stream_srv *peer); + int (*cb)(struct osmo_stream_srv *peer); + void *data; int flags; }; -- To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/20820 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-netif Gerrit-Branch: master Gerrit-Change-Id: I2b8d80fb771336d4d2c4a9ea1749935bdf14a37b Gerrit-Change-Number: 20820 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201021/4dac1e38/attachment.htm>