diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-05 08:06:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-05 08:06:48 -0700 |
commit | f4820455e2019c1a9deba7e90ed7f06111a4cb39 (patch) | |
tree | 0baad636f3e277404e4b041ba5ea84c69dd44742 /main.c | |
parent | 0e29df87f43365309f89d6dbd5b4a3acd8ea5054 (diff) | |
download | subsurface-f4820455e2019c1a9deba7e90ed7f06111a4cb39.tar.gz |
Move 'dive_list_update_dives()' call into 'report_dives()'
All the callers were always calling report_dives first, followed by
dive_list_update_dives(). And there really was no reason to have the
callers call two separate functions for the "I've added new dives" case.
So just call dive_list_update_dives() directly from report_dives(), and
remove it from the callers.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -76,6 +76,8 @@ void report_dives(void) /* Redo the new 'i'th dive */ i--; } + + dive_list_update_dives(); } static void parse_argument(const char *arg) @@ -150,7 +152,6 @@ int main(int argc, char **argv) } report_dives(); - dive_list_update_dives(); run_ui(); return 0; |