Fixed typo in can_socket.c
authoredouard
Wed, 07 Oct 2009 11:39:53 +0200
changeset 603 4dc76e662412
parent 602 cbf29cccec18
child 604 96e632bc1e58
Fixed typo in can_socket.c
drivers/can_socket/can_socket.c
--- a/drivers/can_socket/can_socket.c	Tue Oct 06 17:22:11 2009 +0200
+++ b/drivers/can_socket/can_socket.c	Wed Oct 07 11:39:53 2009 +0200
@@ -200,7 +200,7 @@
                &loopback, sizeof(loopback));
     if (err) {
         fprintf(stderr, "rt_dev_setsockopt: %s\n", strerror (CAN_ERRNO (err)));
-        goto failure;
+        goto error_close;
     }
   }
   
@@ -211,7 +211,7 @@
                &recv_own_msgs, sizeof(recv_own_msgs));
     if (err) {
         fprintf(stderr, "rt_dev_setsockopt: %s\n", strerror (CAN_ERRNO (err)));
-        goto failure;
+        goto error_close;
     }
   }
 #endif