]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- simplification 69/head
authorArvin Schnell <aschnell@suse.de>
Thu, 10 Apr 2014 13:02:30 +0000 (15:02 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 10 Apr 2014 13:02:30 +0000 (15:02 +0200)
client/snapper.cc

index 91568321689ca1cece3f5685f0e5e695618caadc..e907b397401430c6178f0ff660d61498f5df7313 100644 (file)
@@ -1322,11 +1322,7 @@ help_cleanup()
 void
 command_cleanup(DBus::Connection* conn, Snapper* snapper)
 {
-    const struct option options[] = {
-       { 0, 0, 0, 0 }
-    };
-
-    GetOpts::parsed_opts opts = getopts.parse("cleanup", options);
+    GetOpts::parsed_opts opts = getopts.parse("cleanup", GetOpts::no_options);
     if (getopts.numArgs() != 1)
     {
        cerr << _("Command 'cleanup' needs one arguments.") << endl;