Permalink
Browse files

Add a missing sanity check on startup to disallow the use of increment

in combination with -s and -l
Fixes #8
  • Loading branch information...
jsteube committed Jun 9, 2017
1 parent 908a2d2 commit 1708898eedc8a94f2641a5508ebaedf07e666e56
Showing with 26 additions and 8 deletions.
  1. +12 −8 CHANGES
  2. +14 −0 src/mp.c
20 CHANGES
@@ -1,8 +1,12 @@
* v0.72 -> v0.73:

- Open Source the project
- License is MIT
- Moved repository to github: https://github.com/jsteube/maskprocessor
- Added CHANGES
- Added LICENSE
- Added README.md
* v0.73 -> xxx:

- Add a missing sanity check on startup to disallow the use of increment in combination with -s and -l

* v0.72 -> v0.73:

- Open Source the project
- License is MIT
- Moved repository to github: https://github.com/jsteube/maskprocessor
- Added CHANGES
- Added LICENSE
- Added README.md
@@ -490,6 +490,20 @@ int main (int argc, char *argv[])
return (-1);
}

if (increment && start_at)
{
fprintf (stderr, "--increment can not be used with --start-at\n");

return (-1);
}

if (increment && stop_at)
{
fprintf (stderr, "--increment can not be used with --stop-at\n");

return (-1);
}

/* buffers */

char *mp_sys[6];

0 comments on commit 1708898

Please sign in to comment.