aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-05 09:18:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-05 09:18:54 +0000
commita60f84ebf07863e390b72a2b6150e461a1ec18e9 (patch)
treef59bc665cfe3d2d32622450d80523e3c1265e501 /networking/udhcp
parentf6efccc0659a2e2978f2021153f34ce92257ad2b (diff)
downloadbusybox-w32-a60f84ebf07863e390b72a2b6150e461a1ec18e9.tar.gz
busybox-w32-a60f84ebf07863e390b72a2b6150e461a1ec18e9.tar.bz2
busybox-w32-a60f84ebf07863e390b72a2b6150e461a1ec18e9.zip
*: rename ATTRIBUTE_XXX to just XXX.
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/arpping.c2
-rw-r--r--networking/udhcp/common.h4
-rw-r--r--networking/udhcp/dhcpc.c2
-rw-r--r--networking/udhcp/dhcpd.c2
-rw-r--r--networking/udhcp/dhcprelay.c2
-rw-r--r--networking/udhcp/dumpleases.c2
-rw-r--r--networking/udhcp/files.c2
7 files changed, 8 insertions, 8 deletions
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c
index a8a458468..44815ad74 100644
--- a/networking/udhcp/arpping.c
+++ b/networking/udhcp/arpping.c
@@ -30,7 +30,7 @@ struct arpMsg {
30 uint8_t tHaddr[6]; /* 20 target's hardware address */ 30 uint8_t tHaddr[6]; /* 20 target's hardware address */
31 uint8_t tInaddr[4]; /* 26 target's IP address */ 31 uint8_t tInaddr[4]; /* 26 target's IP address */
32 uint8_t pad[18]; /* 2a pad for min. ethernet payload (60 bytes) */ 32 uint8_t pad[18]; /* 2a pad for min. ethernet payload (60 bytes) */
33} ATTRIBUTE_PACKED; 33} PACKED;
34 34
35enum { 35enum {
36 ARP_MSG_SIZE = 0x2a 36 ARP_MSG_SIZE = 0x2a
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index bf0ecc7b1..0f3b79647 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -43,13 +43,13 @@ struct dhcpMessage {
43 uint8_t file[128]; 43 uint8_t file[128];
44 uint32_t cookie; 44 uint32_t cookie;
45 uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS]; 45 uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS];
46} ATTRIBUTE_PACKED; 46} PACKED;
47 47
48struct udp_dhcp_packet { 48struct udp_dhcp_packet {
49 struct iphdr ip; 49 struct iphdr ip;
50 struct udphdr udp; 50 struct udphdr udp;
51 struct dhcpMessage data; 51 struct dhcpMessage data;
52} ATTRIBUTE_PACKED; 52} PACKED;
53 53
54/* Let's see whether compiler understood us right */ 54/* Let's see whether compiler understood us right */
55struct BUG_bad_sizeof_struct_udp_dhcp_packet { 55struct BUG_bad_sizeof_struct_udp_dhcp_packet {
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index d2138dd45..5caa00c83 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -123,7 +123,7 @@ static uint8_t* alloc_dhcp_option(int code, const char *str, int extra)
123 123
124 124
125int udhcpc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 125int udhcpc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
126int udhcpc_main(int argc ATTRIBUTE_UNUSED, char **argv) 126int udhcpc_main(int argc UNUSED_PARAM, char **argv)
127{ 127{
128 uint8_t *temp, *message; 128 uint8_t *temp, *message;
129 char *str_c, *str_V, *str_h, *str_F, *str_r; 129 char *str_c, *str_V, *str_h, *str_F, *str_r;
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index a6264ad2f..0cd6b9d50 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -23,7 +23,7 @@ struct dhcpOfferedAddr *leases;
23 23
24 24
25int udhcpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 25int udhcpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
26int udhcpd_main(int argc ATTRIBUTE_UNUSED, char **argv) 26int udhcpd_main(int argc UNUSED_PARAM, char **argv)
27{ 27{
28 fd_set rfds; 28 fd_set rfds;
29 struct timeval tv; 29 struct timeval tv;
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c
index 08fb733d7..90ecf4831 100644
--- a/networking/udhcp/dhcprelay.c
+++ b/networking/udhcp/dhcprelay.c
@@ -236,7 +236,7 @@ static void pass_back(struct dhcpMessage *p, int packet_len, int *fds)
236} 236}
237 237
238static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients, 238static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients,
239 struct sockaddr_in *server_addr, uint32_t gw_ip) ATTRIBUTE_NORETURN; 239 struct sockaddr_in *server_addr, uint32_t gw_ip) NORETURN;
240static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients, 240static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients,
241 struct sockaddr_in *server_addr, uint32_t gw_ip) 241 struct sockaddr_in *server_addr, uint32_t gw_ip)
242{ 242{
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c
index c98005f13..3e193903d 100644
--- a/networking/udhcp/dumpleases.c
+++ b/networking/udhcp/dumpleases.c
@@ -7,7 +7,7 @@
7#include "dhcpd.h" 7#include "dhcpd.h"
8 8
9int dumpleases_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 9int dumpleases_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
10int dumpleases_main(int argc ATTRIBUTE_UNUSED, char **argv) 10int dumpleases_main(int argc UNUSED_PARAM, char **argv)
11{ 11{
12 int fd; 12 int fd;
13 int i; 13 int i;
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 58498f9ef..eaa50b807 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -155,7 +155,7 @@ static int read_opt(const char *const_line, void *arg)
155 char *line; 155 char *line;
156 const struct dhcp_option *option; 156 const struct dhcp_option *option;
157 int retval, length, idx; 157 int retval, length, idx;
158 char buffer[8] __attribute__((aligned(4))); 158 char buffer[8] ALIGNED(4);
159 uint16_t *result_u16 = (uint16_t *) buffer; 159 uint16_t *result_u16 = (uint16_t *) buffer;
160 uint32_t *result_u32 = (uint32_t *) buffer; 160 uint32_t *result_u32 = (uint32_t *) buffer;
161 161