Skip to content

Commit ac0083d

Browse files
committedAug 4, 2015
Merge pull request #665 from bkleef/patch-1
Fix #664 by compiling on musl libc
2 parents 2398f8b + 998cecc commit ac0083d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎psutil/_psutil_linux.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ psutil_net_if_stats(PyObject* self, PyObject* args)
518518
// duplex and speed
519519
memset(&ethcmd, 0, sizeof ethcmd);
520520
ethcmd.cmd = ETHTOOL_GSET;
521-
ifr.ifr_data = (caddr_t)&ethcmd;
521+
ifr.ifr_data = (void *)&ethcmd;
522522
ret = ioctl(sock, SIOCETHTOOL, &ifr);
523523

524524
if (ret != -1) {

0 commit comments

Comments
 (0)
Please sign in to comment.