summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-06-06 10:24:00 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-06-06 11:58:22 +0200
commit655f60be3622bfbd90e87a4038cc9c8190ad7c35 (patch)
tree2f5669eed3a7afe547ffa55d4d21df3444606df9
parentdf7856856f5f2e4535268362526cc039fed69703 (diff)
libdiskfs: avoid implicit integer conversion
* libdiskfs/boot-start.c (diskfs_boot_start): Avoid implicit integer conversion.
-rw-r--r--libdiskfs/boot-start.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index a60a1d0e..4cc7bb8d 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);