Merge "libnetutils: Rename dhcptool to dhcpdbg"

This commit is contained in:
Treehugger Robot 2017-05-18 01:11:31 +00:00 committed by Gerrit Code Review
commit 9397adabd8
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ cc_library_shared {
}
cc_binary {
name: "dhcptool",
name: "dhcpdbg",
srcs: [
"dhcptool.c",

View File

@ -40,7 +40,7 @@ int main(int argc, char* argv[]) {
if (rc) {
err(errno, "dhcptool %s: do_dhcp failed", interface);
}
warn("IP assignment is for debug purposes ONLY");
ifc_close();
return rc ? EXIT_FAILURE : EXIT_SUCCESS;