removed unused variable warnings by removing the variables

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2012-11-14 20:43:55 +01:00
parent f123d73d9a
commit 589fa16c27
4 changed files with 8 additions and 13 deletions
+1 -5
View File
@@ -190,7 +190,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 +208,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) {