]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/uart.c
CHG: removed a warning about unused variable. Lets see if perror works.
[proxmark3-svn] / client / uart.c
index 5aefcf762dd7f299f8c2f3a0335794db927958fb..508eb672fe48dd5a569c055f39202d42f7b7a9de 100644 (file)
@@ -119,7 +119,12 @@ void uart_close(const serial_port sp) {
   fl.l_start  = 0;
   fl.l_len    = 0;
   fl.l_pid    = getpid();
+
+  // Does the system allows us to place a lock on this file descriptor
   int err = fcntl(spu->fd, F_SETLK, &fl);
+  if ( err == -1) {
+     perror("fcntl");
+  }  
   close(spu->fd);
   free(sp);
 }
Impressum, Datenschutz