diff options
author | Sverker Eriksson <[email protected]> | 2018-12-13 21:52:38 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-12-13 21:52:38 +0100 |
commit | df0638e021eb18a4271a02fdae08aa1779867209 (patch) | |
tree | d0058fff908a6973bb2183f1a825e42be94963b6 | |
parent | 3825199794da28d79b21052a2e69e2335921d55e (diff) | |
download | otp-df0638e021eb18a4271a02fdae08aa1779867209.tar.gz otp-df0638e021eb18a4271a02fdae08aa1779867209.tar.bz2 otp-df0638e021eb18a4271a02fdae08aa1779867209.zip |
erts: Fix warning and potential big-endian-bug in prim_file
for set_permission and set_owner.
-rw-r--r-- | erts/emulator/nifs/common/prim_file_nif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/nifs/common/prim_file_nif.c b/erts/emulator/nifs/common/prim_file_nif.c index b34bf11205..5fff55b467 100644 --- a/erts/emulator/nifs/common/prim_file_nif.c +++ b/erts/emulator/nifs/common/prim_file_nif.c @@ -933,7 +933,7 @@ static ERL_NIF_TERM set_permissions_nif(ErlNifEnv *env, int argc, const ERL_NIF_ posix_errno_t posix_errno; efile_path_t path; - Uint permissions; + unsigned int permissions; if(argc != 2 || !enif_get_uint(env, argv[1], &permissions)) { return enif_make_badarg(env); @@ -952,7 +952,7 @@ static ERL_NIF_TERM set_owner_nif(ErlNifEnv *env, int argc, const ERL_NIF_TERM a posix_errno_t posix_errno; efile_path_t path; - Sint uid, gid; + int uid, gid; if(argc != 3 || !enif_get_int(env, argv[1], &uid) || !enif_get_int(env, argv[2], &gid)) { |