diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-06-06 10:24:00 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-06-06 11:58:22 +0200 |
commit | 655f60be3622bfbd90e87a4038cc9c8190ad7c35 (patch) | |
tree | 2f5669eed3a7afe547ffa55d4d21df3444606df9 /libdiskfs | |
parent | df7856856f5f2e4535268362526cc039fed69703 (diff) |
libdiskfs: avoid implicit integer conversion
* libdiskfs/boot-start.c (diskfs_boot_start): Avoid implicit integer
conversion.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/boot-start.c | 5 |
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); |