bzero() is deprecated

Use memset() instead of bzero().
pull/78/head
Frank Theile 2018-03-30 19:00:05 +02:00 committed by GitHub
parent 8389744f79
commit 6ca4ce8ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ int main(int argc, char **argv)
return 1;
}
bzero(&addr,sizeof(struct sockaddr_can));
memset(&addr, 0, sizeof(addr));
addr.can_family = AF_CAN;
addr.can_ifindex = ifr.ifr_ifindex;