[PATCH] compiler warning removal in networking/ifconfig.c
Stewart Brodie <stewart.brodie <at> pace.co.uk>
2003-03-03 11:35:16 GMT
This patch is to stop compiler warnings from networking/ifconfig.c about
variables which may be used before being initialised.
Initialising sai_hostname and sai_netmask gets rid of a compiler warning
about possible use of uninitialised local variables. The values I have
chosen should be safe. The code is complex and it is hard to see whether the
compiler is correct or not in its warning. Even if the code is currently
safe, it may become unsafe if changes are made to the code in future.
--
Stewart Brodie, Senior Software Engineer Cambridge CVS administration team
Pace Micro Technology PLC
645 Newmarket Road
Cambridge, CB5 8PB, United Kingdom WWW: http://www.pacemicro.com/
begin 644 ifconfig.patch,fff
M26YD97 <at> Z(&YE='=O<FMI;F<O:69C;VYF:6<N8PH]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]"E)#4R!F:6QE.B`O=F%R+V-V<R]B=7-Y8F]X+VYE='=O<FMI;F<O
M:69C;VYF:6<N8RQV"G)E=')I979I;F< <at> <F5V:7-I;VX <at> ,2XR, <at> ID:69F("UB
M("UW("UU("UR,2XR,B!I9F-O;F9I9RYC"BTM+2!N971W;W)K:6YG+VEF8V]N
M9FEG+F,),30 <at> 2F%N(#(P,#, <at> ,# <at> Z-30Z,#< <at> +3`P,#`),2XR, <at> HK*RL <at> ;F5T
M=V]R:VEN9R]I9F-O;F9I9RYC"3, <at> 36%R(#(P,#, <at> ,3`Z-# <at> Z-3$ <at> +3`P,#`*
M0$` <at> +3(Y-BPW("LR.38L-R!`0`H <at> (VEF9&5F($-/3D9)1U]&14%455)%7TE&
M0T].1DE'7T)23T%$0T%35%]03%53"B`)=6YS:6=N960 <at> :6YT(&UA<VL["B`)
M=6YS:6=N960 <at> :6YT(&1I9%]F;&%G<SL*+0EI;E]A9&1R7W0 <at> <V%I7VAO<W1N
M86UE+"!S86E?;F5T;6%S:SL**PEI;E]A9&1R7W0 <at> <V%I7VAO<W1N86UE(#T <at>
M24Y!1$127T%.62P <at> <V%I7VYE=&UA<VL <at> /2!)3D%$1%)?3D].13L*("-E;'-E
M"B`)=6YS:6=N960 <at> 8VAA<B!M87-K.PH <at> "75N<VEG;F5D(&-H87( <at> 9&ED7V9L
%86=S.PIS
(Continue reading)