mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
CHG: removed a warning about unused variable. Lets see if perror works.
This commit is contained in:
parent
c71f4da9bc
commit
b85385a058
1 changed files with 5 additions and 0 deletions
|
@ -119,7 +119,12 @@ void uart_close(const serial_port sp) {
|
||||||
fl.l_start = 0;
|
fl.l_start = 0;
|
||||||
fl.l_len = 0;
|
fl.l_len = 0;
|
||||||
fl.l_pid = getpid();
|
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);
|
int err = fcntl(spu->fd, F_SETLK, &fl);
|
||||||
|
if ( err == -1) {
|
||||||
|
perror("fcntl");
|
||||||
|
}
|
||||||
close(spu->fd);
|
close(spu->fd);
|
||||||
free(sp);
|
free(sp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue