lkml.org 
[lkml]   [2015]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] staging: rtl8712: Use ether_addr_copy() instead of memcpy()

#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


\
 
 \ /
  Last update: 2015-05-18 18:21    [W:0.033 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site