Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docsrc: fix ifenslave type

Documentation/networking/ifenslave.c:1084: warning: pointer targets in assignment differ in signedness

>From include/linux/socket.h:
* 1003.1g requires sa_family_t and that sa_data is char.

and from SUSv3:
(http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html)

The <sys/socket.h> header shall define the sockaddr structure that includes at least the following members:

sa_family_t sa_family Address family.
char sa_data[] Socket address (variable-length data).
<end SUSv3>

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
b3784a77 5d39d944

+1 -1
+1 -1
Documentation/networking/ifenslave.c
··· 1081 1081 1082 1082 } 1083 1083 1084 - ipaddr = ifr.ifr_addr.sa_data; 1084 + ipaddr = (unsigned char *)ifr.ifr_addr.sa_data; 1085 1085 v_print("Interface '%s': set IP %s to %d.%d.%d.%d\n", 1086 1086 slave_ifname, ifra[i].desc, 1087 1087 ipaddr[0], ipaddr[1], ipaddr[2], ipaddr[3]);