Skip to content

Commit

Permalink
Put NULL-named entry at end of getopt long options array. Fixes #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrickl committed Oct 1, 2016
1 parent 3ee4a6f commit 47ff8b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.16 - 1 October 2016
- Addresses https://github.com/sstrickl/rolldice/issues/10.

v1.15 - 16 October 2015
- Merging in pull requests from Github by Thomas Ross and Shea Polansky
to fix formatting and various issues in the build process/program.
Expand Down
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ struct option long_opts[] = {{"help", 0, NULL, 'h'},
{"random", 0, NULL, 'r'},
{"urandom", 0, NULL, 'u'},
{"separate", 0, NULL, 's'},
{"interactive", 0, NULL, 'i'}};
{"interactive", 0, NULL, 'i'},
{NULL, 0, NULL, 0}};

/* For getopt usage */
extern int optind;
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

/* The version number :) */
static const int MAJOR_VERSION = 1;
static const int MINOR_VERSION = 15;
static const int MINOR_VERSION = 16;

0 comments on commit 47ff8b2

Please sign in to comment.