[PATCH] convert local constant arrays to static
Denis Vlasenko
vda at ilport.com.ua
Wed Feb 22 07:00:30 UTC 2006
Hello,
Patch basically does this:
- char *extn[] = {"", ".zip", ".ZIP"};
+ static const char *const extn[] = {"", ".zip", ".ZIP"};
in several places. '*const' pointers are used instead
of just '*' to let compiler check that there is no
assignments to array members.
Rob, can you look at the hunk where I made cleanenv[]
static? I'm not 100% sure it's ok to do so...
A few small unrelated fixes are also there.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: static.patch
Type: text/x-diff
Size: 11733 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060222/aac47315/attachment.bin
More information about the busybox
mailing list