summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2019-03-22 01:39:37 +0100
committernorly <ny-git@enpas.org>2019-03-22 01:39:37 +0100
commit5f910c7647aeee6ccb6807800fd7a0e649232ed1 (patch)
treeb5a503c83528702dfca7cd7c209bf3feed795d2b
parentd9e499640e937a88258c6d98701bec477106b420 (diff)
Typo: rdfs -> rfds
-rw-r--r--tools/vag-bap-dump.c10
-rw-r--r--tools/vag-bap-sniffer.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/tools/vag-bap-dump.c b/tools/vag-bap-dump.c
index e9fb9bc..085f29c 100644
--- a/tools/vag-bap-dump.c
+++ b/tools/vag-bap-dump.c
@@ -66,7 +66,7 @@ static int net_init(char *ifname)
int main(int argc, char **argv)
{
- fd_set rdfs;
+ fd_set rfds;
int s;
int i;
int can_id_count;
@@ -104,10 +104,10 @@ int main(int argc, char **argv)
while (1) {
int retval;
- FD_ZERO(&rdfs);
- FD_SET(s, &rdfs);
+ FD_ZERO(&rfds);
+ FD_SET(s, &rfds);
- retval = select(s+1, &rdfs, NULL, NULL, NULL);
+ retval = select(s+1, &rfds, NULL, NULL, NULL);
/* We currently rely on Linux timeout behavior here,
* i.e. the timeout now reflects the remaining time */
if (retval < 0) {
@@ -115,7 +115,7 @@ int main(int argc, char **argv)
return 1;
} else if (!retval) {
/* Timeout, we NEED to check this first */
- } else if (FD_ISSET(s, &rdfs)) {
+ } else if (FD_ISSET(s, &rfds)) {
struct can_frame frame;
ssize_t ret;
diff --git a/tools/vag-bap-sniffer.c b/tools/vag-bap-sniffer.c
index 65580f9..8355aeb 100644
--- a/tools/vag-bap-sniffer.c
+++ b/tools/vag-bap-sniffer.c
@@ -69,7 +69,7 @@ static int net_init(char *ifname)
int main(int argc, char **argv)
{
- fd_set rdfs;
+ fd_set rfds;
int s;
unsigned can_id;
struct BAP_RXer *bap;
@@ -102,10 +102,10 @@ int main(int argc, char **argv)
while (1) {
int retval;
- FD_ZERO(&rdfs);
- FD_SET(s, &rdfs);
+ FD_ZERO(&rfds);
+ FD_SET(s, &rfds);
- retval = select(s+1, &rdfs, NULL, NULL, NULL);
+ retval = select(s+1, &rfds, NULL, NULL, NULL);
/* We currently rely on Linux timeout behavior here,
* i.e. the timeout now reflects the remaining time */
if (retval < 0) {
@@ -113,7 +113,7 @@ int main(int argc, char **argv)
return 1;
} else if (!retval) {
/* Timeout, we NEED to check this first */
- } else if (FD_ISSET(s, &rdfs)) {
+ } else if (FD_ISSET(s, &rfds)) {
struct can_frame frame;
ssize_t ret;