mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
22 lines
710 B
Diff
22 lines
710 B
Diff
diff -urNp openpts-0.2.6-patched/src/tboot2iml.c openpts-0.2.6-current/src/tboot2iml.c
|
|
--- openpts-0.2.6-patched/src/tboot2iml.c 2012-07-23 16:30:12.381361421 -0400
|
|
+++ openpts-0.2.6-current/src/tboot2iml.c 2012-07-23 17:25:59.053945778 -0400
|
|
@@ -531,7 +531,7 @@ int sinit_acm_hash(char *filename, int s
|
|
|
|
|
|
int sha1sum_unzip(char *filename, int *filesize, BYTE *digest) {
|
|
- FILE *fp;
|
|
+ gzFile fp;
|
|
char buf[2048];
|
|
SHA_CTX sha_ctx;
|
|
int len;
|
|
@@ -541,7 +541,7 @@ int sha1sum_unzip(char *filename, int *f
|
|
|
|
/* open */
|
|
fp = gzopen(filename, "rb");
|
|
- if (fp == NULL) {
|
|
+ if (fp == Z_NULL) {
|
|
LOG(LOG_ERR, "File %s does not exist\n", filename);
|
|
return 0;
|
|
}
|