projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d867f32
)
max_option_length[] holds small ints, uint8_t is enough
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 19 Aug 2007 21:21:16 +0000
(21:21 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 19 Aug 2007 21:21:16 +0000
(21:21 -0000)
function old new delta
max_option_length 44 11 -33
networking/udhcp/script.c
patch
|
blob
|
history
diff --git
a/networking/udhcp/script.c
b/networking/udhcp/script.c
index
98706a5
..
68de358
100644
(file)
--- 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
in
t 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,