On 11 Mar 2016 18:10, Bartosz Golaszewski wrote:
> +int unshare_main(int argc UNUSED_PARAM, char **argv)
> +{
> +     static struct namespace ns_list[] = {

const ?

> +             {
> +#define NS_MNT_POS 0

perhaps an alternate way of handling these indices:
        enum {
                NS_MNT_POS = 0,
                NS_UTS_POS,
                NS_IPC_POS,
                NS_NET_POS,
                ...
        };
        static struct namespace ns_list[] = {
                [NS_MNT_POS] = {
                        ...
-mike

Attachment: signature.asc
Description: Digital signature

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to