From: Arvin Schnell Date: Mon, 7 Feb 2011 17:33:22 +0000 (+0100) Subject: - cleanup X-Git-Tag: v0.1.3~506 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=2079ee062cd27fece83eb02ef63eede79427ca53;p=thirdparty%2Fsnapper.git - cleanup --- diff --git a/tools/snapper.cc b/tools/snapper.cc index 89315094..b3790a3d 100644 --- a/tools/snapper.cc +++ b/tools/snapper.cc @@ -133,25 +133,6 @@ void createSnap( const list& args ) } -void readNums(const list& args, unsigned int& num1, unsigned int& num2) -{ - list::const_iterator s = args.begin(); - if( s!=args.end() ) - { - if( *s != "current" ) - *s >> num1; - ++s; - } - if( s!=args.end() ) - { - if( *s != "current" ) - *s >> num2; - ++s; - } - y2mil("num1:" << num1 << " num2:" << num2); -} - - void readNums(const list& args, Snapshots::const_iterator& snap1, Snapshots::const_iterator& snap2) { @@ -228,9 +209,8 @@ doRollback( const list& args ) int main(int argc, char** argv) { - setlocale (LC_ALL, ""); + setlocale(LC_ALL, ""); - list args; initDefaultLogger(); y2mil( "argc:" << argc ); @@ -245,9 +225,11 @@ main(int argc, char** argv) switch( ch ) { case 'h': + { + list args; showHelp(args); exit(0); - break; + } break; default: break; }