9
0
Fork 0

mtp: Rename no to nr to align with the rest of the structs

This commit is contained in:
Holger Hans Peter Freyther 2011-02-16 23:37:40 +01:00
parent 4096d12ee0
commit a33b23f293
3 changed files with 8 additions and 8 deletions

View File

@ -42,7 +42,7 @@ struct ss7_application;
*/
struct mtp_link_set {
struct llist_head entry;
int no;
int nr;
char *name;

View File

@ -615,7 +615,7 @@ struct mtp_link_set *mtp_link_set_alloc(struct bsc_data *bsc)
link->ni = MTP_NI_NATION_NET;
INIT_LLIST_HEAD(&link->links);
link->no = bsc->num_linksets++;
link->nr = bsc->num_linksets++;
llist_add(&link->entry, &bsc->linksets);
return link;
@ -626,7 +626,7 @@ struct mtp_link_set *mtp_link_set_num(struct bsc_data *bsc, int num)
struct mtp_link_set *set;
llist_for_each_entry(set, &bsc->linksets, entry)
if (set->no == num)
if (set->nr == num)
return set;
return NULL;

View File

@ -51,7 +51,7 @@ void mtp_link_set_forward_sccp(struct mtp_link_set *set, struct msgb *_msg, int
{
if (!set->app) {
LOGP(DINP, LOGL_ERROR, "Linkset %d/%s has no application.\n",
set->no, set->name);
set->nr, set->name);
return;
}
@ -70,7 +70,7 @@ void mtp_link_set_forward_isup(struct mtp_link_set *set, struct msgb *msg, int s
{
if (!set->app) {
LOGP(DINP, LOGL_ERROR, "Linkset %d/%s has no application.\n",
set->no, set->name);
set->nr, set->name);
return;
}
@ -177,7 +177,7 @@ static int ss7_app_setup_stp(struct ss7_application *app,
LOGP(DINP, LOGL_ERROR,
"SS7 %d/%s is using linkset %d/%s\n",
src->app->nr, src->app->name,
src->no, src->name);
src->nr, src->name);
return -3;
}
@ -194,7 +194,7 @@ static int ss7_app_setup_stp(struct ss7_application *app,
LOGP(DINP, LOGL_ERROR,
"SS7 %d/%s is using linkset %d/%s\n",
dst->app->nr, dst->app->name,
dst->no, dst->name);
dst->nr, dst->name);
return -3;
}
@ -251,7 +251,7 @@ static int ss7_app_setup_relay(struct ss7_application *app, int type,
LOGP(DINP, LOGL_ERROR,
"SS7 %d/%s is using linkset %d/%s\n",
mtp->app->nr, mtp->app->name,
mtp->no, mtp->name);
mtp->nr, mtp->name);
return -3;
}