Partially apply https://sourceforge.net/p/cmph/patches/3/
This commit is contained in:
@@ -107,7 +107,7 @@ int main(int argc, char **argv)
|
||||
else source = cmph_io_nlnkfile_adapter(keys_fd, nkeys);
|
||||
|
||||
cmph_uint8 * hashtable = NULL;
|
||||
mphf_fd = fopen(mphf_file, "r");
|
||||
mphf_fd = fopen(mphf_file, "rb");
|
||||
if (mphf_fd == NULL)
|
||||
{
|
||||
fprintf(stderr, "Unable to open input file %s: %s\n", mphf_file, strerror(errno));
|
||||
|
||||
@@ -122,7 +122,7 @@ int main(int argc, char **argv)
|
||||
else source = cmph_io_nlnkfile_adapter(keys_fd, nkeys);
|
||||
|
||||
cmph_uint8 * hashtable = NULL;
|
||||
mphf_fd = fopen(mphf_file, "r");
|
||||
mphf_fd = fopen(mphf_file, "rb");
|
||||
if (mphf_fd == NULL)
|
||||
{
|
||||
fprintf(stderr, "Unable to open input file %s: %s\n", mphf_file, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user