[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/11] i386/i386/db_interface.c: fix assignment from incompat
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 02/11] i386/i386/db_interface.c: fix assignment from incompatible pointer type |
Date: |
Wed, 20 Nov 2013 22:00:13 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Wed 20 Nov 2013 20:42:46 +0100, a écrit :
> * i386/i386/db_interface.c (skaddr): Cast to (unsigned *).
Same here, use vm_offset_t type for vaddr and kaddr.
> ---
> i386/i386/db_interface.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
> index 50b5e82..c19be07 100644
> --- a/i386/i386/db_interface.c
> +++ b/i386/i386/db_interface.c
> @@ -656,7 +656,7 @@ db_search_null(
> vaddr -= sizeof(unsigned);
> if (db_user_to_kernel_address(task, vaddr, (unsigned int
> *)skaddr, 0) < 0)
> return FALSE;
> - kaddr = (vm_offset_t *)*skaddr;
> + kaddr = (unsigned *)skaddr;
> } else {
> vaddr -= sizeof(unsigned);
> kaddr--;
> --
> 1.8.1.4
>
>
--
Samuel
> Subject: pb fvwm95-2 comment l'installer le compiler???
> Merci d'avance
je te conseille d'être un peu plus précis dans l'exposé de ton pb...
-+- EJ in guide du linuxien pervers :"Les modéros sont sympas !" -+-
- [PATCH 01/11] i386/i386/db_interface.c: fix passing from incompatible pointer type, Marin Ramesa, 2013/11/20
- [PATCH 02/11] i386/i386/db_interface.c: fix assignment from incompatible pointer type, Marin Ramesa, 2013/11/20
- Re: [PATCH 02/11] i386/i386/db_interface.c: fix assignment from incompatible pointer type,
Samuel Thibault <=
- [PATCH 03/11] i386/i386/db_interface.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20
- [PATCH 04/11] i386/i386/db_interface.c: remove return value, Marin Ramesa, 2013/11/20
- [PATCH 05/11] i386/i386/db_interface.c: add comments after else and endif, Marin Ramesa, 2013/11/20
- [PATCH 06/11] i386/i386/db_interface.c: comment function and the calls, Marin Ramesa, 2013/11/20
- [PATCH 07/11] i386/i386/db_trace.c: cast to (int *), Marin Ramesa, 2013/11/20
- [PATCH 09/11] i386/i386/db_trace.c: don't cast to db_addr_t, Marin Ramesa, 2013/11/20
- [PATCH 08/11] i386/i386/db_trace.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20
- [PATCH 10/11] i386/i386/db_trace.c: return reg value, Marin Ramesa, 2013/11/20