aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/script.c')
-rw-r--r--networking/udhcp/script.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index 3c4b51b24..6e0ca885f 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -8,20 +8,11 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include <string.h>
12#include <unistd.h>
13#include <stdio.h>
14#include <stdlib.h>
15#include <sys/socket.h>
16#include <netinet/in.h>
17#include <arpa/inet.h>
18#include <sys/types.h>
19#include <sys/wait.h>
20
21#include "common.h" 11#include "common.h"
22#include "options.h"
23#include "dhcpd.h" 12#include "dhcpd.h"
24#include "dhcpc.h" 13#include "dhcpc.h"
14#include "options.h"
15
25 16
26/* get a rough idea of how long an option will be (rounding up...) */ 17/* get a rough idea of how long an option will be (rounding up...) */
27static const int max_option_length[] = { 18static const int max_option_length[] = {
@@ -76,7 +67,7 @@ static void fill_options(char *dest, uint8_t *option, struct dhcp_option *type_p
76 67
77 type = type_p->flags & TYPE_MASK; 68 type = type_p->flags & TYPE_MASK;
78 optlen = option_lengths[type]; 69 optlen = option_lengths[type];
79 for(;;) { 70 for (;;) {
80 switch (type) { 71 switch (type) {
81 case OPTION_IP_PAIR: 72 case OPTION_IP_PAIR:
82 dest += sprintip(dest, "", option); 73 dest += sprintip(dest, "", option);