git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
net
/
x25
/
x25_route.c
diff --git
a/net/x25/x25_route.c
b/net/x25/x25_route.c
index
07ae9d9
..
2a3fe98
100644
(file)
--- a/
net/x25/x25_route.c
+++ b/
net/x25/x25_route.c
@@
-17,13
+17,12
@@
* X.25 001 Jonathan Naylor Started coding.
*/
* X.25 001 Jonathan Naylor Started coding.
*/
-#include <linux/config.h>
#include <linux/if_arp.h>
#include <linux/init.h>
#include <net/x25.h>
struct list_head x25_route_list = LIST_HEAD_INIT(x25_route_list);
#include <linux/if_arp.h>
#include <linux/init.h>
#include <net/x25.h>
struct list_head x25_route_list = LIST_HEAD_INIT(x25_route_list);
-
rwlock_t x25_route_list_lock = RW_LOCK_UNLOCKED
;
+
DEFINE_RWLOCK(x25_route_list_lock)
;
/*
* Add a new route.
/*
* Add a new route.
@@
-174,7
+173,7
@@
struct x25_route *x25_get_route(struct x25_address *addr)
/*
* Handle the ioctls that control the routing functions.
*/
/*
* Handle the ioctls that control the routing functions.
*/
-int x25_route_ioctl(unsigned int cmd, void *arg)
+int x25_route_ioctl(unsigned int cmd, void
__user
*arg)
{
struct x25_route_struct rt;
struct net_device *dev;
{
struct x25_route_struct rt;
struct net_device *dev;