BIND 10 trac878, updated. ecffd3a7f26c9a1590994bb176494ed4f4ca7a64 [878] Remove unused variables to build works.

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Aug 12 12:47:03 UTC 2011


The branch, trac878 has been updated
       via  ecffd3a7f26c9a1590994bb176494ed4f4ca7a64 (commit)
      from  b2cab7978ff20eff1d4fcb4cf60fc8a4421fc24c (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 ecffd3a7f26c9a1590994bb176494ed4f4ca7a64
Author: Shane Kerr <shane at isc.org>
Date:   Fri Aug 12 14:46:02 2011 +0200

    [878] Remove unused variables to build works.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/dhcp6/b10-dhcp6.8  |    4 ++--
 src/bin/dhcp6/dhcp6_srv.cc |    1 -
 src/bin/dhcp6/main.cc      |   12 ++----------
 3 files changed, 4 insertions(+), 13 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/b10-dhcp6.8 b/src/bin/dhcp6/b10-dhcp6.8
index 14a5621..a05bf71 100644
--- a/src/bin/dhcp6/b10-dhcp6.8
+++ b/src/bin/dhcp6/b10-dhcp6.8
@@ -21,8 +21,8 @@
 .SH "NAME"
 b10-dhcp6 \- DHCPv6 daemon in BIND10 architecture
 .SH "SYNOPSIS"
-.HP \w'\fBb10\-dhcp6\fR\ 'u
-\fBb10\-dhcp6\fR [\fB\-u\ \fR\fB\fIusername\fR\fR] [\fB\-v\fR]
+.HP \w'\fBb10\-dhcp6
+\fBb10\-dhcp6\fR [\fB\-v\fR]
 .SH "DESCRIPTION"
 .PP
 The
diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc
index 8e17d54..4bbfd94 100644
--- a/src/bin/dhcp6/dhcp6_srv.cc
+++ b/src/bin/dhcp6/dhcp6_srv.cc
@@ -40,7 +40,6 @@ Dhcpv6Srv::run() {
         pkt = IfaceMgr::instance().receive();
 
         if (pkt) {
-            Addr6 client = pkt->remote_addr_;
             cout << "Received " << pkt->data_len_ << " bytes, echoing back."
                  << endl;
             IfaceMgr::instance().send(*pkt);
diff --git a/src/bin/dhcp6/main.cc b/src/bin/dhcp6/main.cc
index 45ff376..ddd32c3 100644
--- a/src/bin/dhcp6/main.cc
+++ b/src/bin/dhcp6/main.cc
@@ -61,22 +61,14 @@ usage() {
 int
 main(int argc, char* argv[]) {
     int ch;
-    const char* uid = NULL;
-    bool cache = true;
 
-    while ((ch = getopt(argc, argv, ":nu:v")) != -1) {
+    while ((ch = getopt(argc, argv, ":v")) != -1) {
         switch (ch) {
-        case 'n':
-            cache = false;
-            break;
-        case 'u':
-            uid = optarg;
-            break;
         case 'v':
             verbose_mode = true;
             isc::log::denabled = true;
             break;
-        case '?':
+        case ':':
         default:
             usage();
         }




More information about the bind10-changes mailing list