net: change proto and proto_ops accept type
[linux-2.6-block.git] / net / atm / svc.c
index 36a814f1fbd16f9f4fe789b65f81a06abc6710ff..f8137ae693b08c9aa600c3a02dc13708eb3b22e1 100644 (file)
@@ -324,8 +324,8 @@ out:
        return error;
 }
 
-static int svc_accept(struct socket *sock, struct socket *newsock, int flags,
-                     bool kern)
+static int svc_accept(struct socket *sock, struct socket *newsock,
+                     struct proto_accept_arg *arg)
 {
        struct sock *sk = sock->sk;
        struct sk_buff *skb;
@@ -336,7 +336,7 @@ static int svc_accept(struct socket *sock, struct socket *newsock, int flags,
 
        lock_sock(sk);
 
-       error = svc_create(sock_net(sk), newsock, 0, kern);
+       error = svc_create(sock_net(sk), newsock, 0, arg->kern);
        if (error)
                goto out;
 
@@ -355,7 +355,7 @@ static int svc_accept(struct socket *sock, struct socket *newsock, int flags,
                                error = -sk->sk_err;
                                break;
                        }
-                       if (flags & O_NONBLOCK) {
+                       if (arg->flags & O_NONBLOCK) {
                                error = -EAGAIN;
                                break;
                        }