mount: make it more readable
[oweals/busybox.git] / modutils / modutils.c
index 18ea5374e73d5fe8966d9011b720273feaaa10d7..0d7d72d8b330a89f393ec640232d8192a609f569 100644 (file)
@@ -106,7 +106,7 @@ char * FAST_FUNC parse_cmdline_module_options(char **argv)
        while (*++argv) {
                options = xrealloc(options, optlen + 2 + strlen(*argv) + 2);
                /* Spaces handled by "" pairs, but no way of escaping quotes */
-               optlen += sprintf(options + optlen, (strchr(*argv,' ') ? "\"%s\" " : "%s "), *argv);
+               optlen += sprintf(options + optlen, (strchr(*argv, ' ') ? "\"%s\" " : "%s "), *argv);
        }
        return options;
 }
@@ -123,7 +123,7 @@ int FAST_FUNC bb_init_module(const char *filename, const char *options)
 #endif
 
        /* Use the 2.6 way */
-       image = (char *) xmalloc_open_zipped_read_close(filename, &len);
+       image = xmalloc_open_zipped_read_close(filename, &len);
        if (image) {
                if (init_module(image, len, options) != 0)
                        rc = errno;