svn commit: trunk/busybox/networking/udhcp

vda at busybox.net vda at busybox.net
Sun Aug 19 21:21:17 UTC 2007


Author: vda
Date: 2007-08-19 14:21:16 -0700 (Sun, 19 Aug 2007)
New Revision: 19573

Log:
max_option_length[] holds small ints, uint8_t is enough

function                                             old     new   delta
max_option_length                                     44      11     -33



Modified:
   trunk/busybox/networking/udhcp/script.c


Changeset:
Modified: trunk/busybox/networking/udhcp/script.c
===================================================================
--- trunk/busybox/networking/udhcp/script.c	2007-08-19 21:17:48 UTC (rev 19572)
+++ trunk/busybox/networking/udhcp/script.c	2007-08-19 21:21:16 UTC (rev 19573)
@@ -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,




More information about the busybox-cvs mailing list