as currently printed c is the version number, not a string char,
therefore is should be printed as %d not %c. That said, just print
optarg as %s since it might be non-numeric.
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
NFSCTL_VERUNSET(versbits, c);
break;
default:
- fprintf(stderr, "%c: Unsupported version\n", c);
+ fprintf(stderr, "%s: Unsupported version\n", optarg);
exit(1);
}
break;