... | ... |
@@ -181,7 +181,7 @@ unsigned char *cl_hash_file_fd_ctx(EVP_MD_CTX *ctx, int fd, unsigned int *olen) |
181 | 181 |
unsigned char *hash; |
182 | 182 |
int mdsz; |
183 | 183 |
unsigned int hashlen; |
184 |
- struct stat sb; |
|
184 |
+ STATBUF sb; |
|
185 | 185 |
|
186 | 186 |
unsigned int blocksize; |
187 | 187 |
|
... | ... |
@@ -193,7 +193,7 @@ unsigned char *cl_hash_file_fd_ctx(EVP_MD_CTX *ctx, int fd, unsigned int *olen) |
193 | 193 |
|
194 | 194 |
mdsz = EVP_MD_CTX_size(ctx); |
195 | 195 |
|
196 |
- if (fstat(fd, &sb) < 0) { |
|
196 |
+ if (FSTAT(fd, &sb) < 0) { |
|
197 | 197 |
return NULL; |
198 | 198 |
} |
199 | 199 |
|