topology: file position and size cleanups

- try to use size_t/ssize_t
- track the position in own variable, do not use lseek

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-12-13 17:01:03 +01:00
parent 075ee165e6
commit ce74829db6
2 changed files with 60 additions and 64 deletions

View file

@ -62,12 +62,13 @@ typedef enum _snd_pcm_rates {
struct snd_tplg {
/* out file */
int out_fd;
size_t out_pos;
int verbose;
unsigned int version;
/* runtime state */
unsigned int next_hdr_pos;
size_t next_hdr_pos;
int index;
int channel_idx;