summaryrefslogtreecommitdiff
path: root/lib/libmtd.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-05-12 21:51:56 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-05-12 21:59:19 +0200
commitb7c71d8541bf5830afe36e3fa5a925c4b78df04a (patch)
treec8231e35c26d97981e3683308470bc3a9669c5d1 /lib/libmtd.c
parentbc63d36e39f389c8c17f6a8e9db47f2acc884659 (diff)
ubiformat: process command line arguments first
If libmtd_open fails, the program always exists with failure status and prints "MTD subsystem is not present". Even `ubiformat --help` produces the same result, which is definitely undesired. This patch moves command line option processing first to get the desired behavior. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/libmtd.c')
0 files changed, 0 insertions, 0 deletions