patch-2.4.19 linux-2.4.19/include/net/pkt_sched.h
Next file: linux-2.4.19/include/net/route.h
Previous file: linux-2.4.19/include/net/ndisc.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri Aug 2 17:39:46 2002
- Orig file:
linux-2.4.18/include/net/pkt_sched.h
- Orig date:
Thu Nov 22 11:47:12 2001
diff -urN linux-2.4.18/include/net/pkt_sched.h linux-2.4.19/include/net/pkt_sched.h
@@ -8,6 +8,7 @@
#define PSCHED_CLOCK_SOURCE PSCHED_JIFFIES
#include <linux/config.h>
+#include <linux/types.h>
#include <linux/pkt_sched.h>
#include <net/pkt_cls.h>
@@ -221,7 +222,7 @@
#define PSCHED_EXPORTLIST_2
-#if ~0UL == 0xFFFFFFFF
+#if BITS_PER_LONG <= 32
#define PSCHED_WATCHER unsigned long
@@ -358,8 +359,8 @@
#define PSCHED_TDIFF(tv1, tv2) (long)((tv1) - (tv2))
#define PSCHED_TDIFF_SAFE(tv1, tv2, bound, guard) \
({ \
- long __delta = (tv1) - (tv2); \
- if ( __delta > (bound)) { __delta = (bound); guard; } \
+ long long __delta = (tv1) - (tv2); \
+ if ( __delta > (long long)(bound)) { __delta = (bound); guard; } \
__delta; \
})
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)