lkml.org 
[lkml]   [2015]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 08/11] net: bluetooth: change the len parameter of sco_send_frame() to size_t
    Date
    len is used in operation/function that wait for unsigned value.
    Furthermore the only one call of sco_send_frame give a size_t as argument.
    So the parameter need to be set as size_t.

    Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
    ---
    net/bluetooth/sco.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
    index f315c8d..1ae4b36 100644
    --- a/net/bluetooth/sco.c
    +++ b/net/bluetooth/sco.c
    @@ -268,7 +268,7 @@ done:
    return err;
    }

    -static int sco_send_frame(struct sock *sk, struct msghdr *msg, int len)
    +static int sco_send_frame(struct sock *sk, struct msghdr *msg, size_t len)
    {
    struct sco_conn *conn = sco_pi(sk)->conn;
    struct sk_buff *skb;
    --
    2.4.10


    \
     
     \ /
      Last update: 2015-10-23 14:41    [W:4.040 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site