lseek(fd, 4, SEEK_CUR);
frame_data = malloc(sizeof(char) * fh.frame_size);
- if (read(fd, frame_data, fh.frame_size) != fh.frame_size) {
+ if (read(fd, frame_data, fh.frame_size) != (int)fh.frame_size) {
free(frame_data);
return -1;
}
s->str = malloc(count + 1);
- if (read(fd, s->str, count) != count) {
+ if (read(fd, s->str, count) != (int)count) {
perror("read");
free(s->str);
s->str = NULL;
s->str = malloc(count);
- if (read(fd, s->str, count) != count) {
+ if (read(fd, s->str, count) != (int)count) {
perror("read");
free(s->str);
s->str = NULL;