diff options
Diffstat (limited to 'subsurface-core/subsurfacestartup.c')
-rw-r--r-- | subsurface-core/subsurfacestartup.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/subsurface-core/subsurfacestartup.c b/subsurface-core/subsurfacestartup.c index 864134724..6e0dede1c 100644 --- a/subsurface-core/subsurfacestartup.c +++ b/subsurface-core/subsurfacestartup.c @@ -217,6 +217,10 @@ void parse_argument(const char *arg) run_survey = true; return; } + if (strcmp(arg, "--allow_run_as_root") == 0) { + ++force_root; + return; + } if (strcmp(arg, "--win32console") == 0) return; /* fallthrough */ @@ -233,18 +237,6 @@ void parse_argument(const char *arg) } while (*++p); } -void renumber_dives(int start_nr, bool selected_only) -{ - int i, nr = start_nr; - struct dive *dive; - - for_each_dive (i, dive) { - if (dive->selected) - dive->number = nr++; - } - mark_divelist_changed(true); -} - /* * Under a POSIX setup, the locale string should have a format * like [language[_territory][.codeset][@modifier]]. |