Skip to content
Snippets Groups Projects
Commit 27c91be7 authored by Nguyen Anh Quynh's avatar Nguyen Anh Quynh
Browse files

ks_open: change the data type of mode to int. this fixes issue #22

parent 8feb6de8
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ bool ks_arch_supported(ks_arch arch);
for detailed error).
*/
KEYSTONE_EXPORT
ks_err ks_open(ks_arch arch, ks_mode mode, ks_engine **ks);
ks_err ks_open(ks_arch arch, int mode, ks_engine **ks);
/*
......
......@@ -167,7 +167,7 @@ static ks_err InitKs(ks_engine *ks, std::string TripleName)
KEYSTONE_EXPORT
ks_err ks_open(ks_arch arch, ks_mode mode, ks_engine **result)
ks_err ks_open(ks_arch arch, int mode, ks_engine **result)
{
struct ks_struct *ks;
std::string TripleName = "";
......
......@@ -38,7 +38,7 @@ typedef void (*ks_args_ks_t)(struct ks_struct*);
struct ks_struct {
ks_arch arch;
ks_mode mode;
int mode;
unsigned int errnum;
ks_opt_value syntax;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment