]> rtime.felk.cvut.cz Git - can-utils.git/blobdiff - canlogserver.c
candump: Enable HW timestamping before using it
[can-utils.git] / canlogserver.c
index 6aeb150e4b089a61d593701f2a41895dfa4a6f78..e3350b739afb0c2e64d4930726988d32f4f551d2 100644 (file)
@@ -1,7 +1,3 @@
-/*
- *  $Id$
- */
-
 /*
  * canlogserver.c
  *
@@ -101,7 +97,7 @@ void print_usage(char *prg)
        fprintf(stderr, "       <received_can_id> & mask == value & mask\n");
        fprintf(stderr, "\n");
        fprintf(stderr, "When using more than one CAN interface the options\n");
-       fprintf(stderr, "m/v/i/e have comma seperated values e.g. '-m 0,7FF,0'\n");
+       fprintf(stderr, "m/v/i/e have comma separated values e.g. '-m 0,7FF,0'\n");
        fprintf(stderr, "\nUse interface name '%s' to receive from all CAN interfaces.\n\n", ANYDEV);
 }
 
@@ -190,7 +186,7 @@ int main(int argc, char **argv)
        const int canfd_on = 1;
        int nbytes, i, j, maxdlen;
        struct ifreq ifr;
-       struct timeval tv, last_tv;
+       struct timeval tv;
        int port = DEFPORT;
        struct sockaddr_in inaddr;
        struct sockaddr_in clientaddr;
@@ -208,10 +204,6 @@ int main(int argc, char **argv)
        sigaction(SIGTERM, &signalaction, NULL); /* install Signal for termination */
        sigaction(SIGINT, &signalaction, NULL); /* install Signal for termination */
 
-
-       last_tv.tv_sec  = 0;
-       last_tv.tv_usec = 0;
-
        while ((opt = getopt(argc, argv, "m:v:i:e:p:?")) != -1) {
 
                switch (opt) {