diff options
author | Raimo Niskanen <[email protected]> | 2011-12-06 10:33:45 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-12-07 17:40:15 +0100 |
commit | 14f5fc03c4afcbf951f00a1c185db50613c336d8 (patch) | |
tree | a568fe2cbf8546ac380285faf66a8c8a73126eee /erts/emulator/beam/dist.c | |
parent | 72e30a62bf3142b8734a02609625893505a3b120 (diff) | |
download | otp-14f5fc03c4afcbf951f00a1c185db50613c336d8.tar.gz otp-14f5fc03c4afcbf951f00a1c185db50613c336d8.tar.bz2 otp-14f5fc03c4afcbf951f00a1c185db50613c336d8.zip |
erl_driver.h: Enlarge types in driver output functions
Diffstat (limited to 'erts/emulator/beam/dist.c')
-rw-r--r-- | erts/emulator/beam/dist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c index cfcdb72636..bee61e7273 100644 --- a/erts/emulator/beam/dist.c +++ b/erts/emulator/beam/dist.c @@ -54,9 +54,9 @@ #endif #if defined(ERTS_DIST_MSG_DBG) || defined(ERTS_RAW_DIST_MSG_DBG) -static void bw(byte *buf, int sz) +static void bw(byte *buf, ErlDrvSizeT sz) { - bin_write(ERTS_PRINT_STDERR,NULL,buf,sz); + bin_write(ERTS_PRINT_STDERR, NULL, buf, sz); } #endif @@ -897,9 +897,9 @@ erts_dsig_send_group_leader(ErtsDSigData *dsdp, Eterm leader, Eterm remote) int erts_net_message(Port *prt, DistEntry *dep, byte *hbuf, - int hlen, + ErlDrvSizeT hlen, byte *buf, - int len) + ErlDrvSizeT len) { #define DIST_CTL_DEFAULT_SIZE 64 ErtsDistExternal ede; @@ -924,7 +924,7 @@ int erts_net_message(Port *prt, Uint tuple_arity; int res; #ifdef ERTS_DIST_MSG_DBG - int orig_len = len; + ErlDrvSizeT orig_len = len; #endif UseTmpHeapNoproc(DIST_CTL_DEFAULT_SIZE); @@ -940,7 +940,7 @@ int erts_net_message(Port *prt, UnUseTmpHeapNoproc(DIST_CTL_DEFAULT_SIZE); return 0; } - if (hlen > 0) + if (hlen != 0) goto data_error; if (len == 0) { /* HANDLE TICK !!! */ UnUseTmpHeapNoproc(DIST_CTL_DEFAULT_SIZE); |