FreeCalypso > hg > freecalypso-sw
comparison ffstools/tiffs-rd/inode.c @ 234:024042383a26
tiffs IVA: ls reports file sizes
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 26 Jan 2014 11:47:13 +0000 |
parents | ae9ff2d1e3da |
children | 09b8b2327838 |
comparison
equal
deleted
inserted
replaced
233:ae9ff2d1e3da | 234:024042383a26 |
---|---|
56 if (!inf) { | 56 if (!inf) { |
57 perror("malloc of struct inode_info"); | 57 perror("malloc of struct inode_info"); |
58 exit(1); | 58 exit(1); |
59 } | 59 } |
60 bzero(inf, sizeof(struct inode_info)); | 60 bzero(inf, sizeof(struct inode_info)); |
61 inf->ino = ino; | |
61 inf->len = le16toh(fl->len); | 62 inf->len = le16toh(fl->len); |
62 if (inf->len & 0xF) { | 63 if (inf->len & 0xF) { |
63 fprintf(stderr, | 64 fprintf(stderr, |
64 "warning: inode #%x: invalid length, skipping\n", ino); | 65 "warning: inode #%x: invalid length, skipping\n", ino); |
65 free(inf); | 66 free(inf); |