[Libguestfs] [PATCH] sleuthkit code cleanup

Richard W.M. Jones rjones at redhat.com
Mon Aug 8 21:25:45 UTC 2016


On Mon, Aug 08, 2016 at 11:28:56PM +0300, Matteo Cafasso wrote:
> Small cosmetic changes.
> 
> Signed-off-by: Matteo Cafasso <noxdafox at gmail.com>
> ---
>  daemon/sleuthkit.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/daemon/sleuthkit.c b/daemon/sleuthkit.c
> index ce738e3..e642731 100644
> --- a/daemon/sleuthkit.c
> +++ b/daemon/sleuthkit.c
> @@ -47,7 +47,8 @@ do_download_inode (const mountable_t *mountable, int64_t inode)
>    }
> 
>    /* Construct the command. */
> -  ret = asprintf(&cmd, "%s -r %s %" PRIi64, str_icat, mountable->device, inode);
> +  ret = asprintf (&cmd, "%s -r %s %" PRIi64,
> +                  str_icat, mountable->device, inode);
>    if (ret < 0) {
>      reply_with_perror ("asprintf");
>      return -1;
> @@ -85,7 +86,7 @@ do_download_blocks (const mountable_t *mountable, int64_t start, int64_t stop,
>    /* Construct the command. */
>    ret = asprintf (&cmd, "%s %s %s %" PRIi64 "-%" PRIi64,
>                    str_blkls, mountable->device, params, start, stop);
> -  if (ret < -0) {
> +  if (ret < 0) {
>      reply_with_perror ("asprintf");
>      return -1;
>    }
> --
> 2.8.1

Pushed it, thanks.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list