Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mount/mount.c

    r680708d r86cf96d  
    3030#include <stdio.h>
    3131#include <stdlib.h>
    32 #include <str_error.h>
    3332#include <vfs/vfs.h>
    3433#include <adt/list.h>
     
    118117        argc = cli_count_args(argv);
    119118
    120         for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
     119        for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
    121120                c = getopt_long(argc, argv, "i:h", long_options, &opt_ind);
    122121                switch (c) {
     
    153152        rc = mount(t_argv[1], t_argv[2], dev, mopts, 0, instance);
    154153        if (rc != EOK) {
    155                 printf("Unable to mount %s filesystem to %s on %s (rc=%s)\n",
    156                     t_argv[1], t_argv[2], t_argv[3], str_error(rc));
     154                printf("Unable to mount %s filesystem to %s on %s (rc=%d)\n",
     155                    t_argv[1], t_argv[2], t_argv[3], rc);
    157156                return CMD_FAILURE;
    158157        }
Note: See TracChangeset for help on using the changeset viewer.