BIND 10 trac584, updated. 96c902f2ffb43d75fbd138a6da15dbbc0d80a71f [trac584] message.cc: use getopt() instead of getopt_long() for Solaris
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Feb 17 16:30:52 UTC 2011
The branch, trac584 has been updated
via 96c902f2ffb43d75fbd138a6da15dbbc0d80a71f (commit)
from 6750a2bb8306b0c335f12f6d1bd97c1b0559bdd7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 96c902f2ffb43d75fbd138a6da15dbbc0d80a71f
Author: Stephen Morris <stephen at isc.org>
Date: Thu Feb 17 16:29:27 2011 +0000
[trac584] message.cc: use getopt() instead of getopt_long() for Solaris
-----------------------------------------------------------------------
Summary of changes:
src/lib/log/compiler/message.cc | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/log/compiler/message.cc b/src/lib/log/compiler/message.cc
index 41f6149..6f9c4e0 100644
--- a/src/lib/log/compiler/message.cc
+++ b/src/lib/log/compiler/message.cc
@@ -467,19 +467,14 @@ warnDuplicates(MessageReader& reader) {
/// main file header for the invocation.
int
-main(int argc, char** argv) {
+main(int argc, char* argv[]) {
- const struct option loptions[] = { // Long options
- {"help", no_argument, NULL, 'h'},
- {"version", no_argument, NULL, 'v'},
- {NULL, 0, NULL, 0 }
- };
const char* soptions = "hv"; // Short options
optind = 1; // Ensure we start a new scan
int opt; // Value of the option
- while ((opt = getopt_long(argc, argv, soptions, loptions, NULL)) != -1) {
+ while ((opt = getopt(argc, argv, soptions)) != -1) {
switch (opt) {
case 'h':
usage();
More information about the bind10-changes
mailing list