mirror of https://github.com/PentHertz/srsLTE.git
Fixed inverted handling of fseek result value in srslte_filesource_seek
This commit is contained in:
parent
dd613c1514
commit
3cf4431c66
|
@ -45,7 +45,7 @@ void srslte_filesource_free(srslte_filesource_t *q) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void srslte_filesource_seek(srslte_filesource_t *q, int pos) {
|
void srslte_filesource_seek(srslte_filesource_t *q, int pos) {
|
||||||
if (!fseek(q->f, pos, SEEK_SET)){
|
if (fseek(q->f, pos, SEEK_SET) != 0){
|
||||||
perror("srslte_filesource_seek");
|
perror("srslte_filesource_seek");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue