Skip to content

Commit

Permalink
[usb_moded] Refactor startup and exit
Browse files Browse the repository at this point in the history
The main() function in usb-moded is long and difficult to read.

Move code into separate functions to deal with command line parsing,
initialization during service startup and cleaning up on exit path.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Sep 5, 2018
1 parent 10ca284 commit eb0499d
Showing 1 changed file with 298 additions and 248 deletions.

0 comments on commit eb0499d

Please sign in to comment.