Pretty nice patch, I welcome it! However 'empty_string' should be handled differently, I personally would suggest using a ternary _expression_ and returning "" there. So turning: add_static_lease(arg, (uint8_t*) &mac_bytes, hostname, nip); into: add_static_lease(arg, (uint8_t*) &mac_bytes, (hostname != NULL) ? hostname : "", nip); //M Sent from my BlackBerry — the most secure mobile device Hello all, First of all, thanks for the continuous support of busybox. I love this set of small footprints applications. I made a quick hack for udhcpd to support hostnames for static leases. If instead of the documented example : static_lease 00:60:08:11:CE:4E | ||
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
