Introduction
Introduction Statistics Contact Development Disclaimer Help
fix typos - sdhcp - simple dhcp client
git clone git://git.codemadness.org/sdhcp
Log
Files
Refs
LICENSE
---
commit fee8efc7684cde41fcbc2ca2d903c30a008c22cd
parent d810f71b91a99088de330bf3d16459a8a5c7c859
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 25 Apr 2014 19:24:05 +0200
fix typos
Signed-off-by: Hiltjo Posthuma <[email protected]>
Diffstat:
M sdhcp.8 | 2 +-
M sdhcp.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];
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.