diff options
author | Björn-Egil Dahlberg <egil@erlang.org> | 2012-01-03 15:58:47 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <egil@erlang.org> | 2012-01-03 15:58:47 +0100 |
commit | 80ecd300ab7e2f1f3612976f35c4e66df7601bc2 (patch) | |
tree | 2138b316c9cd516ac1e8276b7dc2af06b91e52f9 /erts/etc/unix/to_erl.c | |
parent | 47a904d8ea238e27c5d9163d2e21c94005ca4309 (diff) | |
download | otp-80ecd300ab7e2f1f3612976f35c4e66df7601bc2.tar.gz otp-80ecd300ab7e2f1f3612976f35c4e66df7601bc2.tar.bz2 otp-80ecd300ab7e2f1f3612976f35c4e66df7601bc2.zip |
to_erl: Remove compiler warnings
Diffstat (limited to 'erts/etc/unix/to_erl.c')
-rw-r--r-- | erts/etc/unix/to_erl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c index 11fa3ff4cc..67274e67ed 100644 --- a/erts/etc/unix/to_erl.c +++ b/erts/etc/unix/to_erl.c @@ -352,7 +352,10 @@ int main(int argc, char **argv) * to trigger the version handshaking between to_erl and run_erl * at the start of every new to_erl-session. */ - write(wfd, "\022", 1); + + if (write(wfd, "\022", 1) < 0) { + fprintf(stderr, "Error in writing ^R to FIFO.\n"); + } /* * read and write @@ -412,7 +415,7 @@ int main(int argc, char **argv) if (len) { #ifdef DEBUG - write(1, buf, len); + if(write(1, buf, len)); #endif if (write_all(wfd, buf, len) != len) { fprintf(stderr, "Error in writing to FIFO.\n"); |