From 0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 22 Feb 2006 17:01:00 +0000 Subject: Patch from Denis Vlasenko to constify things and fix a few typos. --- networking/udhcp/packet.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'networking/udhcp') 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) /* read a packet from socket fd, return -1 on read error, -2 on packet error */ int get_packet(struct dhcpMessage *packet, int fd) { - int bytes; - int i; - const char broken_vendors[][8] = { + static const char broken_vendors[][8] = { "MSFT 98", "" }; + + int bytes; + int i; char unsigned *vendor; memset(packet, 0, sizeof(struct dhcpMessage)); -- cgit v1.2.3