diff --git a/bbf_plugin/atm.c b/bbf_plugin/atm.c
index 56d4bf4344e5b0c4ec261ab9d9f3a85a5a1016f4..b3da116fd3736e5fc47790d8741dd4568b9545d7 100644
--- a/bbf_plugin/atm.c
+++ b/bbf_plugin/atm.c
@@ -369,7 +369,6 @@ DMLEAF tATMLinkParams[] = {
 {"Status", &DMREAD, DMT_STRING, get_atm_status, NULL, BBFDM_BOTH},
 {"LowerLayers", &DMWRITE, DMT_STRING, get_atm_lower_layer, set_atm_lower_layer, BBFDM_BOTH, DM_FLAG_REFERENCE},
 {"LinkType", &DMWRITE, DMT_STRING, get_atm_link_type, set_atm_link_type, BBFDM_BOTH},
-{"LinkNumberOfEntries", &DMREAD, DMT_UNINT, get_atm_LinkNumberOfEntries, NULL, BBFDM_BOTH},
 {"DestinationAddress", &DMWRITE, DMT_STRING, get_atm_destination_address, set_atm_destination_address, BBFDM_BOTH},
 {"Encapsulation", &DMWRITE, DMT_STRING, get_atm_encapsulation, set_atm_encapsulation, BBFDM_BOTH},
 {0}
@@ -399,7 +398,13 @@ DMOBJ tATMObj[] = {
 {0}
 };
 
+DMLEAF tATMParams[] = {
+/* PARAM, permission, type, getvalue, setvalue, bbfdm_type*/
+{"LinkNumberOfEntries", &DMREAD, DMT_UNINT, get_atm_LinkNumberOfEntries, NULL, BBFDM_BOTH},
+{0}
+};
+
 DMOBJ tDeviceATMObj[] = {
-{"ATM", &DMREAD, NULL, NULL, "file:/etc/config/dsl", NULL, NULL, NULL, tATMObj, NULL, NULL, BBFDM_BOTH, NULL},
+{"ATM", &DMREAD, NULL, NULL, "file:/etc/config/dsl", NULL, NULL, NULL, tATMObj, tATMParams, NULL, BBFDM_BOTH, NULL},
 {0}
 };
diff --git a/bbf_plugin/fast.c b/bbf_plugin/fast.c
index 7ec55144101af900396e42619defa5bb7a53a30e..a9909ee99c8d7c76f6a2f3c24f544d633f3c4862 100644
--- a/bbf_plugin/fast.c
+++ b/bbf_plugin/fast.c
@@ -162,7 +162,7 @@ static int get_FASTLine_AllowedProfiles(char *refparam, struct dmctx *ctx, void
 {
 	json_object *res = NULL, *allowed_profiles = NULL;
 	char list_profile[16], *profile = NULL;
-	unsigned pos = 0, idx = 0;
+	size_t pos = 0, idx = 0;
 
 	res = ((struct dm_data *)data)->json_object;
 	DM_ASSERT(res, *value = "");
diff --git a/bbf_plugin/plugin.c b/bbf_plugin/plugin.c
index 3b80002a17c02b229c26d698d27446944461c50d..ef3a110781ed124c308e6cf6bff2229cccbb5122 100644
--- a/bbf_plugin/plugin.c
+++ b/bbf_plugin/plugin.c
@@ -36,7 +36,7 @@ void remove_device_from_interface(struct uci_section *interface_s, char *device)
 {
 	char *curr_device  = NULL;
 	char new_device[64] = {0};
-	unsigned pos = 0;
+	size_t pos = 0;
 
 	if (!interface_s || !device)
 		return;
diff --git a/bbf_plugin/ptm.c b/bbf_plugin/ptm.c
index f71c768762afafed869f28cb5012850f1a2bfa4e..118639a09e5e72758dbf5bf557a0bded2522c40d 100644
--- a/bbf_plugin/ptm.c
+++ b/bbf_plugin/ptm.c
@@ -268,7 +268,6 @@ DMLEAF tPTMLinkParams[] = {
 {"Alias", &DMWRITE, DMT_STRING, get_ptm_alias, set_ptm_alias, BBFDM_BOTH, DM_FLAG_UNIQUE},
 {"Name", &DMREAD, DMT_STRING, get_ptm_link_name, NULL, BBFDM_BOTH, DM_FLAG_UNIQUE|DM_FLAG_LINKER},
 {"LowerLayers", &DMWRITE, DMT_STRING, get_ptm_lower_layer, set_ptm_lower_layer, BBFDM_BOTH, DM_FLAG_REFERENCE},
-{"LinkNumberOfEntries", &DMREAD, DMT_UNINT, get_ptm_LinkNumberOfEntries, NULL, BBFDM_BOTH},
 {0}
 };
 
@@ -286,7 +285,13 @@ DMOBJ tPTMObj[] = {
 {0}
 };
 
+DMLEAF tPTMParams[] = {
+/* PARAM, permission, type, getvalue, setvalue, bbfdm_type*/
+{"LinkNumberOfEntries", &DMREAD, DMT_UNINT, get_ptm_LinkNumberOfEntries, NULL, BBFDM_BOTH},
+{0}
+};
+
 DMOBJ tDevicePTMObj[] = {
-{"PTM", &DMREAD, NULL, NULL, "file:/etc/config/dsl", NULL, NULL, NULL, tPTMObj, NULL, NULL, BBFDM_BOTH, NULL},
+{"PTM", &DMREAD, NULL, NULL, "file:/etc/config/dsl", NULL, NULL, NULL, tPTMObj, tPTMParams, NULL, BBFDM_BOTH, NULL},
 {0}
 };