projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tools: iio: replace seekdir() in iio_generic_buffer
[linux-2.6-microblaze.git]
/
tools
/
iio
/
iio_utils.c
diff --git
a/tools/iio/iio_utils.c
b/tools/iio/iio_utils.c
index
6a00a6e
..
c5c5082
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) {