BIND 10 #2956: DHCP-DDNS: Create server controller class
BIND 10 Development
do-not-reply at isc.org
Thu Jun 6 16:17:31 UTC 2013
#2956: DHCP-DDNS: Create server controller class
-------------------------------------+-------------------------------------
Reporter: stephen | Owner:
Type: enhancement | stephen
Priority: medium | Status:
Component: dhcp | reviewing
Keywords: | Milestone:
Sensitive: 0 | Sprint-DHCP-20130606
Sub-Project: DHCP | Resolution:
Estimated Difficulty: 0 | CVSS Scoring:
Total Hours: 0 | Defect Severity: N/A
| Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Changes (by tmark):
* owner: tmark => stephen
Comment:
Replying to [comment:9 stephen]:
> Reviewed commit 21f3ea90672b5bf84886e58f08f97bbcc63dfd6d
>
> '''src/bin/d2/Makefile.am'''[[BR]]
> Typo: s/b10-dchdp-ddns.xml/b10-dhcp-ddns.xml/
Got it.
>
> '''src/bin/d2/b10-dhcp-ddns.xml'''[[BR]]
> Should replace all occurrences of "D2" with "DHCP-DDNS" for
documentation.
I can't believe I missed that. I replaced all the lower case -d2s.
>
> You should probably add something to say that the process is started by
BIND 10 depending on the configuration options, and that the command-line
arguments are for testing purposes only.
>
Done.
> '''src/bin/d2/d2.spec'''[[BR]]
> > Gut and paste error. Fixed.
> The rest of us have to make do with the "Cut" function. You really are
using an industrial-strength text editor, aren't you?
>
Of course, I am an American afterall. We always use sledge hammers. You
should see the size of my mouse.
> '''src/bin/d2/d2_log.cc'''[[BR]]
> Typo: s/b10-dhpc-ddns/b10-dhcp-ddns/
>
> '''src/bin/d2/d_controller.cc'''[[BR]]
> In the isc_throw error messages, suggest a space after the terminating
colon in the text string to make the error messages more readable, e.g.
change:
> {{{
> "Application process initialization failed:" << ex.what()
> }}}
> to
> {{{
> "Application process initialization failed: " << ex.what()
> }}}
> (This occurs in several places.)
>
OMG... Fixed.
>
> '''src/bin/d2/d_controller.h'''[[BR]]
> >> DControllerBase::getXxxx()/isXxxx(): most of these methods can be
declared "const".
> > Done.
> A bit over-enthusiastic in adding "const" to the return value if that
value is a primitive type:
> {{{
> ../../../src/bin/d2/d_process.h:130:33: error: type qualifiers ignored
on function return type [-Werror=ignored-qualifiers]
> In file included from ../../../src/bin/d2/d2_controller.h:18:0,
> from main.cc:17:
> ../../../src/bin/d2/d_controller.h:347:31: error: type qualifiers
ignored on function return type [-Werror=ignored-qualifiers]
> ../../../src/bin/d2/d_controller.h:361:28: error: type qualifiers
ignored on function return type [-Werror=ignored-qualifiers]
> cc1plus: all warnings being treated as errors
> }}}
>
Apparently g++ 4.2 doesn't catch this. Have g++ 6.0 on Debian and it
does. Fixed em.
> '''!ChangeLog'''[[BR]]
> I didn't comment on the !ChangeLog last time. It looks OK.
Ok.
--
Ticket URL: <http://bind10.isc.org/ticket/2956#comment:10>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list