Skip to content

Commit

Permalink
Fixes #11. Test for extra unused params.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel committed Sep 24, 2015
1 parent 1211ecf commit d93cd16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devmem2.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#define printerr(fmt,...) do { fprintf(stderr, fmt, ## __VA_ARGS__); fflush(stderr); } while(0)

#define VER_STR "devmem version T/C (http://git.io/vZ5iD) rev.0.3b"
#define VER_STR "devmem version T/C (http://git.io/vZ5iD) rev.0.3c"

int f_dbg = 0;

Expand Down Expand Up @@ -109,7 +109,7 @@ int main(int argc, char **argv)
}
}

if (optind >= argc) {
if (optind >= argc || argc > 4) {
usage(progname);
exit(1);
}
Expand Down

0 comments on commit d93cd16

Please sign in to comment.