diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-22 17:01:00 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-22 17:01:00 +0000 |
commit | 407ef4f17ee659da92cbe5ffc1526828d94019eb (patch) | |
tree | f32eb89325299a3abade721ffe149b0e516747c1 /networking/udhcp/packet.c | |
parent | 9a3bdf5633322049d91c475b3dd5ad868212d7ec (diff) | |
download | busybox-w32-407ef4f17ee659da92cbe5ffc1526828d94019eb.tar.gz busybox-w32-407ef4f17ee659da92cbe5ffc1526828d94019eb.tar.bz2 busybox-w32-407ef4f17ee659da92cbe5ffc1526828d94019eb.zip |
Patch from Denis Vlasenko to constify things and fix a few typos.
git-svn-id: svn://busybox.net/trunk/busybox@14210 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | networking/udhcp/packet.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index 222dd24e0..fe74b828f 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c | |||
@@ -46,12 +46,13 @@ void init_header(struct dhcpMessage *packet, char type) | |||
46 | /* read a packet from socket fd, return -1 on read error, -2 on packet error */ | 46 | /* read a packet from socket fd, return -1 on read error, -2 on packet error */ |
47 | int get_packet(struct dhcpMessage *packet, int fd) | 47 | int get_packet(struct dhcpMessage *packet, int fd) |
48 | { | 48 | { |
49 | int bytes; | 49 | static const char broken_vendors[][8] = { |
50 | int i; | ||
51 | const char broken_vendors[][8] = { | ||
52 | "MSFT 98", | 50 | "MSFT 98", |
53 | "" | 51 | "" |
54 | }; | 52 | }; |
53 | |||
54 | int bytes; | ||
55 | int i; | ||
55 | char unsigned *vendor; | 56 | char unsigned *vendor; |
56 | 57 | ||
57 | memset(packet, 0, sizeof(struct dhcpMessage)); | 58 | memset(packet, 0, sizeof(struct dhcpMessage)); |