summaryrefslogtreecommitdiffhomepage
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-19 21:21:16 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-19 21:21:16 +0000
commit3f1123103cff3d6a67f5faa2f4b25f3c1e92a501 (patch)
tree26fc4abcce90306ec07c79686f71ee8d8aabab7d /networking/udhcp
parentd867f32a7aefe6694dbbc4c6370a36a30bfc8318 (diff)
max_option_length[] holds small ints, uint8_t is enough
function old new delta max_option_length 44 11 -33
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index 98706a592..68de358e5 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -14,7 +14,7 @@
/* get a rough idea of how long an option will be (rounding up...) */
-static const int max_option_length[] = {
+static const uint8_t max_option_length[] = {
[OPTION_IP] = sizeof("255.255.255.255 "),
[OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2,
[OPTION_STRING] = 1,