Merge "libnetutils: Rename dhcptool to dhcpdbg"

am: 9397adabd8

Change-Id: Ic41199dca7815df78dfdde9fa89be64ca0ec9729
This commit is contained in:
Dmitry Shmidt 2017-05-18 01:23:48 +00:00 committed by android-build-merger
commit 482ca8ee38
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;