#include <stdio.h>

struct foo {
        unsigned char one;
        unsigned char two;
        unsigned char three;
        unsigned char mac_addr[6];
        unsigned short channel_plan;
};

int main(void)
{
        struct foo *p = NULL;

        printf("%x\n", &p->mac_addr);

        return 0;
}

This program does not print an even number so the alignment is off.

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to