diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-03-20 01:43:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 22:06:50 -0400 |
commit | 7ca98fa234afa096ec2a5e7195ad2d32555cca86 (patch) | |
tree | 2c54b7eb083de1d1f2d57faa73e690aa2ea202d9 /include/net/psnap.h | |
parent | 65689fef7e484631e996541a6772706627b0991a (diff) |
snap: use const for descriptor
Protocols should be able to use constant value for the descriptor.
Minor whitespace cleanup as well
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/psnap.h')
-rw-r--r-- | include/net/psnap.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/psnap.h b/include/net/psnap.h index b2e01cc3fc8a..fe456c295b04 100644 --- a/include/net/psnap.h +++ b/include/net/psnap.h | |||
@@ -1,7 +1,11 @@ | |||
1 | #ifndef _NET_PSNAP_H | 1 | #ifndef _NET_PSNAP_H |
2 | #define _NET_PSNAP_H | 2 | #define _NET_PSNAP_H |
3 | 3 | ||
4 | extern struct datalink_proto *register_snap_client(unsigned char *desc, int (*rcvfunc)(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *orig_dev)); | 4 | extern struct datalink_proto * |
5 | register_snap_client(const unsigned char *desc, | ||
6 | int (*rcvfunc)(struct sk_buff *, struct net_device *, | ||
7 | struct packet_type *, | ||
8 | struct net_device *orig_dev)); | ||
5 | extern void unregister_snap_client(struct datalink_proto *proto); | 9 | extern void unregister_snap_client(struct datalink_proto *proto); |
6 | 10 | ||
7 | #endif | 11 | #endif |