bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 14/18] Fix initialization from incompatible pointer type


From: Marin Ramesa
Subject: Re: [PATCH 14/18] Fix initialization from incompatible pointer type
Date: Sat, 07 Dec 2013 14:10:02 +0100

On 06.12.2013 16:29:56, Marin Ramesa wrote:
> This patch has one questionable addition, that is the cast from
> io_req_t to a pointer to uio struct in the function kdread().
> [...]
> -     return((*linesw[kd_tty.t_line].l_read)(tp, uio));
> +     return((*linesw[kd_tty.t_line].l_read)(tp, (struct uio
*)uio));
>

This is an unnecessary cast. I've just read device/buf.h and uio is 
defined as io_req. I will send a patch removing the uio structure and 
using io_req_t instead of it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]