summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-18 23:52:38 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-01-26 03:19:35 +0100
commitcc7db18e1a5bd8d9dd19cf5179caefc6eb8841de (patch)
treefea12f9d8a3bc9a94e0e747a9eb1a034061c9ada
parentd0ef1ed78cc4e8e04296342499991fdde77fbbe7 (diff)
various comment / whitespace tweaks (libmsc, gprs, libcommon-cs)
cosmetic ws in common_cs_vty.c, osmo_msc.c comment: tiny typo fix in gsm_04_08.c In comments, drop some unbalanced braces, because simplistic C file harvesters will break at a single opening brace even if it is in a comment. This is aimed at the fsm-to-dot.py script in libosmocore/contrib. Change-Id: I3c1fa53195a1e57d6fe0a6791c346d30ceff1251
-rw-r--r--openbsc/src/gprs/gprs_sndcp.c1
-rw-r--r--openbsc/src/gprs/gtphub.c2
-rw-r--r--openbsc/src/libcommon-cs/common_cs_vty.c2
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c2
-rw-r--r--openbsc/src/libmsc/osmo_msc.c2
5 files changed, 5 insertions, 4 deletions
diff --git a/openbsc/src/gprs/gprs_sndcp.c b/openbsc/src/gprs/gprs_sndcp.c
index 60455b5..a18998f 100644
--- a/openbsc/src/gprs/gprs_sndcp.c
+++ b/openbsc/src/gprs/gprs_sndcp.c
@@ -911,6 +911,7 @@ static int sndcp_rx_llc_prim()
case LL_DATA_CONF:
case LL_UNITDATA_IND:
case LL_STATUS_IND:
+ }
}
#endif
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c
index 83e17db..a1aaed2 100644
--- a/openbsc/src/gprs/gtphub.c
+++ b/openbsc/src/gprs/gtphub.c
@@ -553,7 +553,7 @@ static void gtp_decode(const uint8_t *data, int data_len,
}
#if 1
- /* TODO if (<loglevel is debug>) { ...
+ /* TODO if (<loglevel is debug>)
(waiting for a commit from jerlbeck) */
int i;
diff --git a/openbsc/src/libcommon-cs/common_cs_vty.c b/openbsc/src/libcommon-cs/common_cs_vty.c
index 7f8b495..08a7581 100644
--- a/openbsc/src/libcommon-cs/common_cs_vty.c
+++ b/openbsc/src/libcommon-cs/common_cs_vty.c
@@ -163,7 +163,7 @@ DEFUN(cfg_net_encryption,
{
struct gsm_network *gsmnet = gsmnet_from_vty(vty);
- gsmnet->a5_encryption= atoi(argv[0]);
+ gsmnet->a5_encryption = atoi(argv[0]);
return CMD_SUCCESS;
}
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 742f803..1e25754 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -3759,7 +3759,7 @@ int gsm0408_dispatch(struct gsm_subscriber_connection *conn, struct msgb *msg)
}
/*
- * This will be ran by the linker when loading the DSO. We use it to
+ * This will be run by the linker when loading the DSO. We use it to
* do system initialization, e.g. registration of signal handlers.
*/
static __attribute__((constructor)) void on_dso_load_0408(void)
diff --git a/openbsc/src/libmsc/osmo_msc.c b/openbsc/src/libmsc/osmo_msc.c
index 12a5117..2389980 100644
--- a/openbsc/src/libmsc/osmo_msc.c
+++ b/openbsc/src/libmsc/osmo_msc.c
@@ -131,7 +131,7 @@ static void msc_ciph_m_compl(struct gsm_subscriber_connection *conn,
static struct bsc_api msc_handler = {
.sapi_n_reject = msc_sapi_n_reject,
.compl_l3 = msc_compl_l3,
- .dtap = msc_dtap,
+ .dtap = msc_dtap,
.clear_request = msc_clear_request,
.assign_compl = msc_assign_compl,
.assign_fail = msc_assign_fail,