sdhcp

simple dhcp client
git clone git://git.2f30.org/sdhcp
Log | Files | Refs | LICENSE

commit fee8efc7684cde41fcbc2ca2d903c30a008c22cd
parent d810f71b91a99088de330bf3d16459a8a5c7c859
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 25 Apr 2014 19:24:05 +0200

fix typos

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Msdhcp.8 | 2+-
Msdhcp.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sdhcp.8 b/sdhcp.8 @@ -5,7 +5,7 @@ sdhcp \- a simple dhcp client .B sdhcp .RB [interface] .SH DESCRIPTION -sdchp is a simple, tiny dhcp client. It runs until it enters the "Bound" +sdhcp is a simple, tiny dhcp client. It runs until it enters the "Bound" state, then forks to the background and runs as a daemon to keep the lease alive. .SH BUGS diff --git a/sdhcp.c b/sdhcp.c @@ -397,13 +397,13 @@ static void nop(int unused){ } static void cleanexit(int unused){ dhcpsend(DHCPrelease, Unicast); exit(0); + fputs("usage: sdhcp [interface]\n", stderr); } int main(int argc, char *argv[]) { if(argc>2){ - write(2, "usage: sdhcp [inferface]\n",25); exit(EXIT_FAILURE); }if(argc==2) ifname = argv[1];