git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'x86-urgent-2024-03-24' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git]
/
tools
/
iio
/
iio_utils.c
diff --git
a/tools/iio/iio_utils.c
b/tools/iio/iio_utils.c
index 6a00a6eecaef02bbb911741fc23e39614d8bdc90..c5c5082cb24e5cd05ed3d5f5a7f12c71d853209f 100644
(file)
--- a/
tools/iio/iio_utils.c
+++ b/
tools/iio/iio_utils.c
@@
-376,7
+376,7
@@
int build_channel_array(const char *device_dir, int buffer_idx,
goto error_close_dir;
}
-
seekdir(dp, 0
);
+
rewinddir(dp
);
while (ent = readdir(dp), ent) {
if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"),
"_en") == 0) {