mirror of
https://git.busybox.net/busybox
synced 2026-02-07 20:50:26 +00:00
Introduce a library routine to package the idiom:
p = xmalloc(b, n);
memcpy(p, b, n);
and use it where possible. The example in traceroute used xzalloc
but it didn't need to.
function old new delta
xmemdup - 32 +32
last_main 834 826 -8
make_device 2321 2311 -10
common_traceroute_main 3698 3685 -13
readtoken1 3182 3168 -14
procps_scan 1222 1206 -16
forkchild 655 638 -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/6 up/down: 32/-78) Total: -46 bytes
Signed-off-by: Ron Yorston <rmy@frippery.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
||
|---|---|---|
| .. | ||
| libiproute | ||
| ssl_helper | ||
| udhcp | ||
| arp.c | ||
| arping.c | ||
| brctl.c | ||
| Config.src | ||
| dnsd.c | ||
| ether-wake.c | ||
| ftpd.c | ||
| ftpgetput.c | ||
| hostname.c | ||
| httpd.c | ||
| httpd_indexcgi.c | ||
| httpd_post_upload.txt | ||
| httpd_ssi.c | ||
| ifconfig.c | ||
| ifenslave.c | ||
| ifplugd.c | ||
| ifupdown.c | ||
| inetd.c | ||
| interface.c | ||
| ip.c | ||
| ipcalc.c | ||
| isrv.c | ||
| isrv.h | ||
| isrv_identd.c | ||
| Kbuild.src | ||
| nameif.c | ||
| nbd-client.c | ||
| nc.c | ||
| nc_bloaty.c | ||
| netstat.c | ||
| nslookup.c | ||
| ntpd.c | ||
| ping.c | ||
| pscan.c | ||
| route.c | ||
| slattach.c | ||
| tc.c | ||
| tcpudp.c | ||
| tcpudp_perhost.c | ||
| tcpudp_perhost.h | ||
| telnet.c | ||
| telnetd.c | ||
| telnetd.ctrlSQ.patch | ||
| tftp.c | ||
| traceroute.c | ||
| tunctl.c | ||
| vconfig.c | ||
| wget.c | ||
| whois.c | ||
| zcip.c | ||