summaryrefslogtreecommitdiff
path: root/ztd-eth.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-23 15:39:12 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-23 15:39:12 +0000
commit412656572604454581bf1f6599d68f686543e57c (patch)
treee80f0e1954c2754885d87f10175a24180283f697 /ztd-eth.c
parentb2c0d8b6576b26631db7c450ac16c3776d80f476 (diff)
use the proper function prototype for 2.6 kernels
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1923 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztd-eth.c')
-rw-r--r--ztd-eth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ztd-eth.c b/ztd-eth.c
index c13a32d..56ae42d 100644
--- a/ztd-eth.c
+++ b/ztd-eth.c
@@ -84,7 +84,11 @@ struct zt_span *ztdeth_getspan(unsigned char *addr, unsigned short subaddr)
return span;
}
+#if defined(LINUX26)
+static int ztdeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev)
+#else
static int ztdeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt)
+#endif
{
struct zt_span *span;
struct ztdeth_header *zh;