aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-16 09:55:10 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-16 09:55:42 +0100
commit104280700a459163a03c647772ba40fa4dbdf8f6 (patch)
treed874dad8655c1971ed7235f51c696a98fd5de0fc
parenta59af64126954aceec09559c117c2641291bcc33 (diff)
mtp: Name the parameter opc instead of just PC
-rw-r--r--src/mtp_layer3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c
index 14bce65..fb9d87f 100644
--- a/src/mtp_layer3.c
+++ b/src/mtp_layer3.c
@@ -33,7 +33,7 @@
#include <string.h>
-static int mtp_int_submit(struct mtp_link_set *set, int pc, int sls, int type, const uint8_t *data, unsigned int length);
+static int mtp_int_submit(struct mtp_link_set *set, int opc, int sls, int type, const uint8_t *data, unsigned int length);
struct msgb *mtp_msg_alloc(struct mtp_link_set *set)
{
@@ -552,7 +552,7 @@ int mtp_link_set_send(struct mtp_link_set *set, struct msgb *msg)
return 0;
}
-static int mtp_int_submit(struct mtp_link_set *set, int pc, int sls, int type,
+static int mtp_int_submit(struct mtp_link_set *set, int opc, int sls, int type,
const uint8_t *data, unsigned int length)
{
uint8_t *put_ptr;
@@ -569,7 +569,7 @@ static int mtp_int_submit(struct mtp_link_set *set, int pc, int sls, int type,
hdr = (struct mtp_level_3_hdr *) msg->l2h;
hdr->ser_ind = type;
- hdr->addr = MTP_ADDR(sls % 16, set->dpc, pc);
+ hdr->addr = MTP_ADDR(sls % 16, set->dpc, opc);
/* copy the raw sccp data */
put_ptr = msgb_put(msg, length);