diff options
author | Michael Santos <[email protected]> | 2011-06-03 10:34:15 -0400 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2011-06-07 17:35:36 +0200 |
commit | b5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4 (patch) | |
tree | 72bbdc7fb55242eca9b0178e4d41a1800b4b2037 /erts/epmd/src/epmd_cli.c | |
parent | 612de104d23a01d5753ca39f4db4e14ba0234897 (diff) | |
download | otp-b5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4.tar.gz otp-b5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4.tar.bz2 otp-b5ff56daf5e5c507af1c57caeca6cc1ca2fe72e4.zip |
epmd: fix compiler warnings
Suppress compiler warnings about ignored return values.
Diffstat (limited to 'erts/epmd/src/epmd_cli.c')
-rw-r--r-- | erts/epmd/src/epmd_cli.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/epmd/src/epmd_cli.c b/erts/epmd/src/epmd_cli.c index ac55ba6bb6..2377c0dfe7 100644 --- a/erts/epmd/src/epmd_cli.c +++ b/erts/epmd/src/epmd_cli.c @@ -104,7 +104,10 @@ void epmd_call(EpmdVars *g,int what) fd = conn_to_epmd(g); put_int16(1,buf); buf[2] = what; - write(fd,buf,3); + if (write(fd, buf, 3) != 3) { + printf("epmd: Can't write to epmd\n"); + epmd_cleanup_exit(g,1); + } if (read(fd,(char *)&i,4) != 4) { if (!g->silent) printf("epmd: no response from local epmd\n"); |