[PATCH] osmo-bsc[master]: libbsc: Fix trailing whitespace

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Thu Oct 19 15:37:19 UTC 2017


Review at  https://gerrit.osmocom.org/4360

libbsc: Fix trailing whitespace

Change-Id: I7bfc07d2050bd9e5cac149ae097c0daf3421548a
---
M src/libbsc/abis_nm.c
M src/libbsc/bsc_vty.c
2 files changed, 19 insertions(+), 19 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/60/4360/1

diff --git a/src/libbsc/abis_nm.c b/src/libbsc/abis_nm.c
index a8b1e82..a2e04b8 100644
--- a/src/libbsc/abis_nm.c
+++ b/src/libbsc/abis_nm.c
@@ -218,7 +218,7 @@
 	}
 
 	new_state = *nm_state;
-	
+
 	abis_nm_tlv_parse(&tp, bts, foh->data, oh->length-sizeof(*foh));
 	if (TLVP_PRESENT(&tp, NM_ATT_OPER_STATE)) {
 		new_state.operational = *TLVP_VAL(&tp, NM_ATT_OPER_STATE);
@@ -399,7 +399,7 @@
 	default:
 		DEBUGPC(DNM, "reporting NM MT 0x%02x\n", mt);
 		break;
-		
+
 	};
 
 	return 0;
@@ -1009,7 +1009,7 @@
 
 	sw_add_file_id_and_ver(sw, msg);
 	msgb_tv_put(msg, NM_ATT_WINDOW_SIZE, sw->window_size);
-	
+
 	return abis_nm_sendmsg(sw->bts, msg);
 }
 
@@ -1220,7 +1220,7 @@
 		sw->file_version_len = strlen(file_version);
 		/* rewind to start of file */
 		rewind(sw->stream);
-		break;	
+		break;
 	case GSM_BTS_TYPE_NANOBTS:
 		/* TODO: extract that from the filename or content */
 		rc = parse_sdp_header(sw);
@@ -1242,7 +1242,7 @@
 
 	return 0;
 }
-	
+
 static void sw_close_file(struct abis_nm_sw *sw)
 {
 	switch (sw->bts->type) {
@@ -1278,7 +1278,7 @@
 	int rc = -1;
 	struct abis_nm_sw *sw = &g_sw;
 	enum sw_state old_state = sw->state;
-	
+
 	//DEBUGP(DNM, "state %u, NM MT 0x%02x\n", sw->state, foh->msg_type);
 
 	switch (sw->state) {
@@ -1530,7 +1530,7 @@
 	ch->attrib = NM_ATT_ABIS_CHANNEL;
 	ch->bts_port = bts_port;
 	ch->timeslot = ts_nr;
-	ch->subslot = subslot_nr;	
+	ch->subslot = subslot_nr;
 }
 
 int abis_nm_establish_tei(struct gsm_bts *bts, uint8_t trx_nr,
@@ -1545,7 +1545,7 @@
 	oh = (struct abis_om_hdr *) msgb_put(msg, ABIS_OM_FOM_HDR_SIZE);
 	fill_om_fom_hdr(oh, len, NM_MT_ESTABLISH_TEI, NM_OC_RADIO_CARRIER,
 			bts->bts_nr, trx_nr, 0xff);
-	
+
 	msgb_tv_put(msg, NM_ATT_TEI, tei);
 
 	ch = (struct abis_nm_channel *) msgb_put(msg, sizeof(*ch));
@@ -1566,7 +1566,7 @@
 	oh = (struct abis_om_hdr *) msgb_put(msg, ABIS_OM_FOM_HDR_SIZE);
 	fill_om_fom_hdr(oh, sizeof(*ch), NM_MT_CONN_TERR_SIGN,
 			NM_OC_RADIO_CARRIER, bts->bts_nr, trx->nr, 0xff);
-	
+
 	ch = (struct abis_nm_channel *) msgb_put(msg, sizeof(*ch));
 	fill_nm_channel(ch, e1_port, e1_timeslot, e1_subslot);
 
@@ -2286,7 +2286,7 @@
 		fill_om_fom_hdr(oh, 0, NM_MT_BS11_LMT_LOGOFF,
 				NM_OC_BS11_BTSE, 0xff, 0xff, 0xff);
 	}
-	
+
 	return abis_nm_sendmsg(bts, msg);
 }
 
@@ -2313,7 +2313,7 @@
 	struct abis_om_hdr *oh;
 	struct msgb *msg;
 	uint8_t tlv_value;
-	
+
 	msg = nm_msgb_alloc();
 	oh = (struct abis_om_hdr *) msgb_put(msg, ABIS_OM_FOM_HDR_SIZE);
 	fill_om_fom_hdr(oh, 3, NM_MT_BS11_SET_ATTR, NM_OC_BS11,
@@ -2323,9 +2323,9 @@
 		tlv_value = BS11_LI_PLL_LOCKED;
 	else
 		tlv_value = BS11_LI_PLL_STANDALONE;
-	
+
 	msgb_tlv_put(msg, NM_ATT_BS11_PLL_MODE, 1, &tlv_value);
-	
+
 	return abis_nm_sendmsg(bts, msg);
 }
 
@@ -2383,7 +2383,7 @@
 
 	lh = queue->next;
 	llist_del(lh);
-	
+
 	return llist_entry(lh, struct file_list_entry, list);
 }
 
@@ -2412,7 +2412,7 @@
 
 		if (strlen(linebuf) < 4)
 			continue;
-	
+
 		rc = sscanf(linebuf+4, "%12s:%80s\r\n", file_id, file_version);
 		if (rc < 0) {
 			perror("ERR parsing SWL file");
@@ -2433,7 +2433,7 @@
 		strncat(fle->fname, dirname(dir), sizeof(fle->fname) - 1);
 		strcat(fle->fname, "/");
 		strncat(fle->fname, file_id, sizeof(fle->fname) - 1 -strlen(fle->fname));
-		
+
 		llist_add_tail(&fle->list, &bs11_sw->file_list);
 	}
 
@@ -2535,7 +2535,7 @@
 	NM_ATT_FILE_VERSION, NM_ATT_OPER_STATE, 0xe8, NM_ATT_BS11_ALL_TEST_CATG,
 	NM_ATT_SW_DESCR, NM_ATT_GET_ARI };
 #endif
-	
+
 static uint8_t req_attr[] = {
 	NM_ATT_ADM_STATE, NM_ATT_AVAIL_STATUS, 0xa8, NM_ATT_OPER_STATE,
 	0xd5, 0xa1, NM_ATT_BS11_ESN_FW_CODE_NO, NM_ATT_BS11_ESN_HW_CODE_NO,
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index 10f05af..ca1479f 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -606,7 +606,7 @@
 	else
 		vty_out(vty, "  radio-link-timeout %d%s",
 			gsm_bts_get_radio_link_timeout(bts), VTY_NEWLINE);
-	
+
 	vty_out(vty, "  channel allocator %s%s",
 		bts->chan_alloc_reverse ? "descending" : "ascending",
 		VTY_NEWLINE);
@@ -1442,7 +1442,7 @@
 		}
 		bts = gsm_bts_num(net, bts_nr);
 		bts_paging_dump_vty(vty, bts);
-		
+
 		return CMD_SUCCESS;
 	}
 	for (bts_nr = 0; bts_nr < net->num_bts; bts_nr++) {

-- 
To view, visit https://gerrit.osmocom.org/4360
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7bfc07d2050bd9e5cac149ae097c0daf3421548a
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>


More information about the gerrit-log mailing list