[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/9] libdiskfs: avoid implicit integer conversion
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 4/9] libdiskfs: avoid implicit integer conversion |
Date: |
Fri, 6 Jun 2014 17:27:38 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Fri 06 Jun 2014 16:42:13 +0200, a écrit :
> * libdiskfs/boot-start.c (diskfs_boot_start): Avoid implicit integer
> conversion.
Ack.
> ---
> libdiskfs/boot-start.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
> index a60a1d0..4cc7bb8 100644
> --- a/libdiskfs/boot-start.c
> +++ b/libdiskfs/boot-start.c
> @@ -217,8 +217,9 @@ diskfs_start_bootstrap ()
> while (*initname == '/')
> initname++;
>
> - exec_argvlen = asprintf (&exec_argv, "/%s%c", initname, '\0');
> - assert (exec_argvlen != -1);
> + int len = asprintf (&exec_argv, "/%s%c", initname, '\0');
> + assert (len != -1);
> + exec_argvlen = (size_t) len;
> err = argz_add_sep (&exec_argv, &exec_argvlen,
> diskfs_boot_command_line, ' ');
> assert_perror (err);
> --
> 2.0.0.rc2
>
--
Samuel
FYLG> Tiens, vlà une URL qui va bien :
FYLG> ftp://127.0.0.1/WaReZ/NiouZeS/WinDoZe/NeWSMoNGeR/SuPeR
c'est gentil sauf que l'adresse ne fonctionne pas sa me fais une erreur
-+- Furtif in Guide du Neuneu Usenet : <MODE CERVEAU OFF> -+-
- [PATCH 1/9] include: use unsigned literal in combination with binary not, Justus Winter, 2014/06/06
- [PATCH 4/9] libdiskfs: avoid implicit integer conversion, Justus Winter, 2014/06/06
- Re: [PATCH 4/9] libdiskfs: avoid implicit integer conversion,
Samuel Thibault <=
- [PATCH 2/9] hurd: fix type of optimal_transfer_size, Justus Winter, 2014/06/06
- [PATCH 5/9] ext2fs: fix compiler warning, Justus Winter, 2014/06/06
- [PATCH 6/9] ext2fs: use correct type for disk offsets, Justus Winter, 2014/06/06
- [PATCH 8/9] ext2fs: fix type of blockaddr, Justus Winter, 2014/06/06
- [PATCH 7/9] ext2fs: use size_t where appropriate, Justus Winter, 2014/06/06