1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/openpts/tboot.patch
2015-08-11 13:38:58 +02:00

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;
}