We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gzFile is already a "struct gzsomething *", so it shouldn't be "gzFile *".
--- a/Geocube/NVHTarGzip/NVHGzipFile.m +++ b/Geocube/NVHTarGzip/NVHGzipFile.m @@ -103,7 +103,7 @@ - (NSInteger)inflateGzip:(NSString *)sourcePath // Convert source path into something a C library can handle const char *sourceCString = [sourcePath cStringUsingEncoding:NSASCIIStringEncoding]; - gzFile *sourceGzFile = gzopen(sourceCString, "rb"); + gzFile sourceGzFile = gzopen(sourceCString, "rb"); unsigned int bufferLength = 1024*256; //Thats like 256Kb void *buffer = malloc(bufferLength); @@ -221,7 +221,7 @@ - (NSInteger)deflateToGzip:(NSString *)destinationPath // Convert destination path into something a C library can handle const char *destinationCString = [destinationPath cStringUsingEncoding:NSASCIIStringEncoding]; - gzFile *destinationGzFile = gzopen(destinationCString, "wb"); + gzFile destinationGzFile = gzopen(destinationCString, "wb"); unsigned int bufferLength = 1024*256; //Thats like 256Kb void *buffer = malloc(bufferLength);
The text was updated successfully, but these errors were encountered:
I'm not actively maintaining this project, but If you submit a PR, I'd happily merge it.
Sorry, something went wrong.
No branches or pull requests
gzFile is already a "struct gzsomething *", so it shouldn't be "gzFile *".
The text was updated successfully, but these errors were encountered: