Skip to contentSkip to conversation

: Use constants for CCIDs

PATCH In review Arnaldo Carvalho de Melo 1 participant 1 message Sep 24, 2006 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 : Use constants for CCIDs

Hi David,

Please consider pulling from:

master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6.git

Best Regards,

- Arnaldo

With constants for CCID numbers this now uses them in some places.

---
 net/dccp/ccids/ccid2.c |    2 +-
 net/dccp/ccids/ccid3.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
net/dccp/ccids/ccid2.c +1 -1
index 457dd3d..2efb505 100644
@@ -808,7 +808,7 @@ static void ccid2_hc_rx_packet_recv(stru
 }
 
 static struct ccid_operations ccid2 = {
-	.ccid_id		= 2,
+	.ccid_id		= DCCPC_CCID2,
 	.ccid_name		= "ccid2",
 	.ccid_owner		= THIS_MODULE,
 	.ccid_hc_tx_obj_size	= sizeof(struct ccid2_hc_tx_sock),
net/dccp/ccids/ccid3.c +1 -1
index 195aa95..67d2dc0 100644
@@ -1240,7 +1240,7 @@ static int ccid3_hc_tx_getsockopt(struct
 }
 
 static struct ccid_operations ccid3 = {
-	.ccid_id		   = 3,
+	.ccid_id		   = DCCPC_CCID3,
 	.ccid_name		   = "ccid3",
 	.ccid_owner		   = THIS_MODULE,
 	.ccid_hc_tx_obj_size	   = sizeof(struct ccid3_hc_tx_sock),
Signature · 1 line
1.4.2.1.g3d5c