]> err.no Git - linux-2.6/commitdiff
[DCCP]: Use constants for CCIDs
authorIan McDonald <ian.mcdonald@jandi.co.nz>
Fri, 22 Sep 2006 02:26:44 +0000 (14:26 +1200)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Sun, 24 Sep 2006 21:03:41 +0000 (18:03 -0300)
With constants for CCID numbers this now uses them in some places.

Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/dccp/ccids/ccid2.c
net/dccp/ccids/ccid3.c

index 457dd3db7f410a5f2090e0c11a197aa12d3d872f..2efb505aeb3551837f3780f44c4bd981687c5c43 100644 (file)
@@ -808,7 +808,7 @@ static void ccid2_hc_rx_packet_recv(struct sock *sk, struct sk_buff *skb)
 }
 
 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),
index 195aa95662281738039503201ed642d409aba032..67d2dc0e7c678e62dd39993c1bf6ae2e724aa64f 100644 (file)
@@ -1240,7 +1240,7 @@ static int ccid3_hc_tx_getsockopt(struct sock *sk, const int optname, int len,
 }
 
 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),