Introduction
Introduction Statistics Contact Development Disclaimer Help
Other minor style fixes - sdhcp - simple dhcp client
git clone git://git.codemadness.org/sdhcp
Log
Files
Refs
LICENSE
---
commit cbf0f211645a92ada263ddff97e08038c9d19299
parent 4871e8efcfcd14dd626d44067eb14fc0ef3ee880
Author: Michael Forney <[email protected]>
Date: Wed, 14 Nov 2018 18:40:32 -0800
Other minor style fixes
Diffstat:
M sdhcp.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/sdhcp.c b/sdhcp.c
@@ -77,10 +77,10 @@ enum {
OBend = 255,
};
-enum { Broadcast, Unicast};
+enum { Broadcast, Unicast };
Bootp bp;
-unsigned char magic[] = {99, 130, 83, 99};
+unsigned char magic[] = { 99, 130, 83, 99 };
/* conf */
static unsigned char xid[sizeof(bp.xid)];
@@ -102,7 +102,7 @@ static int dflag = 1; /* change DNS in /etc/resolv.conf ? */
static int iflag = 1; /* set IP ? */
static int fflag = 0; /* run in foreground */
-#define IP(a,b,c,d) (unsigned char[4]){a,b,c,d}
+#define IP(a, b, c, d) (unsigned char[4]){ a, b, c, d }
static void
hnput(unsigned char *dst, uint32_t src, size_t n)
@@ -418,16 +418,16 @@ Rebinding:
}
}
-static
-void nop(int unused)
+static void
+nop(int unused)
{
- (void) unused;
+ (void)unused;
}
-static
-void cleanexit(int unused)
+static void
+cleanexit(int unused)
{
- (void) unused;
+ (void)unused;
dhcpsend(DHCPrelease, Unicast);
_exit(0);
}
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.