[Libguestfs] [PATCH] sleuthkit code cleanup

Matteo Cafasso noxdafox at gmail.com
Mon Aug 8 20:28:56 UTC 2016


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




More information about the Libguestfs mailing list