Merge pull request #79 from ftheile/consistent-sizeof
Consistent arguments to sizeof().pull/81/head
commit
01041fddd6
|
|
@ -386,7 +386,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
if (FD_ISSET(s[i], &rdfs)) {
|
if (FD_ISSET(s[i], &rdfs)) {
|
||||||
|
|
||||||
nbytes = read(s[i], &frame, sizeof(struct can_frame));
|
nbytes = read(s[i], &frame, sizeof(frame));
|
||||||
|
|
||||||
if (nbytes < 0) {
|
if (nbytes < 0) {
|
||||||
perror("read");
|
perror("read");
|
||||||
|
|
|
||||||
2
slcand.c
2
slcand.c
|
|
@ -305,7 +305,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Configure baud rate */
|
/* Configure baud rate */
|
||||||
memset(&tios, 0, sizeof(struct termios));
|
memset(&tios, 0, sizeof(tios));
|
||||||
if (tcgetattr(fd, &tios) < 0) {
|
if (tcgetattr(fd, &tios) < 0) {
|
||||||
syslogger(LOG_NOTICE, "failed to get attributes for TTY device %s: %s\n", ttypath, strerror(errno));
|
syslogger(LOG_NOTICE, "failed to get attributes for TTY device %s: %s\n", ttypath, strerror(errno));
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue