summaryrefslogtreecommitdiff
path: root/mysys/my_gethwaddr.c
diff options
context:
space:
mode:
authorVasil Dimov <vasil.dimov@oracle.com>2010-09-09 15:51:50 +0300
committerVasil Dimov <vasil.dimov@oracle.com>2010-09-09 15:51:50 +0300
commit7f608a3ac2b6b0afe6c9439187119d577ed9fc2c (patch)
treef357fec16c40a8797c3ad8e0d9e1f0d9b2f346cc /mysys/my_gethwaddr.c
parent9865f9ec26ca07615b6585f899976b16adf32ac7 (diff)
downloadmariadb-git-7f608a3ac2b6b0afe6c9439187119d577ed9fc2c.tar.gz
Fix a compiler warning in my_gethwaddr.c:67:
mysys/my_gethwaddr.c: In function 'my_gethwaddr': mysys/my_gethwaddr.c:67:11: error: pointer targets in assignment differ in signedness
Diffstat (limited to 'mysys/my_gethwaddr.c')
-rw-r--r--mysys/my_gethwaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_gethwaddr.c b/mysys/my_gethwaddr.c
index 9ca22f2201e..d14087d061e 100644
--- a/mysys/my_gethwaddr.c
+++ b/mysys/my_gethwaddr.c
@@ -64,7 +64,7 @@ my_bool my_gethwaddr(uchar *to)
if (ifm->ifm_type == RTM_IFINFO)
{
sdl = (struct sockaddr_dl *)(ifm + 1);
- addr=LLADDR(sdl);
+ addr=(uchar *)LLADDR(sdl);
res=memcpy_and_test(to, addr, ETHER_ADDR_LEN);
}
}