Skip to content

Commit

Permalink
Merge pull request #1 from ten0s/master
Browse files Browse the repository at this point in the history
fix upgrade error
  • Loading branch information
iamaleksey committed Aug 21, 2013
2 parents f072a16 + daec85c commit 847e5de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion c_src/uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ unparse_generic(ErlNifEnv* env, const ERL_NIF_TERM argv[], char type)
return enif_make_binary(env, &bin36);
}

static int
upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info)
{
return 0;
}

static ErlNifFunc nif_funcs[] = {
{"generate", 0, erl_uuid_generate},
{"generate_random", 0, erl_uuid_generate_random},
Expand All @@ -149,4 +155,4 @@ static ErlNifFunc nif_funcs[] = {
{"unparse_lower", 1, erl_uuid_unparse_lower}
};

ERL_NIF_INIT(uuid, nif_funcs, NULL, NULL, NULL, NULL)
ERL_NIF_INIT(uuid, nif_funcs, NULL, NULL, upgrade, NULL)

0 comments on commit 847e5de

Please sign in to comment.