tools: iio: replace seekdir() in iio_generic_buffer
[linux-2.6-microblaze.git] / tools / iio / iio_utils.c
index 6a00a6e..c5c5082 100644 (file)
@@ -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) {