From 611a7ef087ff3376cbf655d6d0d2b0cfdc69e525 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 22 Apr 2009 12:53:49 +0000 Subject: don't refer to macros from dahdi_config.h until after it has been included use the proper type for the flags variable in dahdi_ppp_xmit() git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6444 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 02850fc..e9316a8 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -47,17 +47,6 @@ #include #include -#ifdef CONFIG_DAHDI_NET -#include -#endif /* CONFIG_DAHDI_NET */ - -#include -#ifdef CONFIG_DAHDI_PPP -#include -#include -#include -#endif - #include #define module_printk(level, fmt, args...) printk(level "%s: " fmt, THIS_MODULE->name, ## args) @@ -82,6 +71,18 @@ #include #include "ecdis.h" +#ifdef CONFIG_DAHDI_NET +#include +#endif /* CONFIG_DAHDI_NET */ + +#include + +#ifdef CONFIG_DAHDI_PPP +#include +#include +#include +#endif + #include "hpec/hpec_user.h" /* Get helper arithmetic */ @@ -1783,7 +1784,7 @@ static int dahdi_ppp_xmit(struct ppp_channel *ppp, struct sk_buff *skb) int x,oldbuf; unsigned int fcs; unsigned char *data; - long flags; + unsigned long flags; int retval = 0; /* See if we have any buffers */ -- cgit v1.2.3