pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-pcap/+/39268?usp=email )
Change subject: server: Rename static functions
......................................................................
server: Rename static functions
The current naming of those functions is totally misleadling with
regards of the message type it processes. Let's clarify them.
Change-Id: I72f21b38b696e80e481043825ad23c3b8d36ab16
---
M src/osmo_server_network.c
1 file changed, 4 insertions(+), 4 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/src/osmo_server_network.c b/src/osmo_server_network.c
index 9750170..a784af2 100644
--- a/src/osmo_server_network.c
+++ b/src/osmo_server_network.c
@@ -296,7 +296,7 @@
update_last_write(conn, now);
}
-static int link_data(struct osmo_pcap_conn *conn, struct osmo_pcap_data *data)
+static int rx_link_hdr(struct osmo_pcap_conn *conn, struct osmo_pcap_data *data)
{
struct pcap_file_header *hdr;
@@ -460,7 +460,7 @@
/*
* Check if we are past the limit or on a day change
*/
-static int write_data(struct osmo_pcap_conn *conn, struct osmo_pcap_data *data)
+static int rx_link_data(struct osmo_pcap_conn *conn, struct osmo_pcap_data *data)
{
time_t now = time(NULL);
int rc;
@@ -667,10 +667,10 @@
switch (conn->data->type) {
case PKT_LINK_HDR:
- return link_data(conn, conn->data);
+ return rx_link_hdr(conn, conn->data);
break;
case PKT_LINK_DATA:
- return write_data(conn, conn->data);
+ return rx_link_data(conn, conn->data);
break;
}
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-pcap/+/39268?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I72f21b38b696e80e481043825ad23c3b8d36ab16
Gerrit-Change-Number: 39268
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>