diff options
author | Tuncer Ayaz <[email protected]> | 2011-03-10 20:50:46 +0100 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2011-03-16 16:26:46 +0100 |
commit | 345454e7dcfd4bc38992870cf5aa5ab7efe0c475 (patch) | |
tree | e1fc3b52c07502471a2e3c7f89ee4540e00f6ed8 /erts/etc/unix | |
parent | 91b2e57ea0e3ab794d4b57a12ef10205383525a5 (diff) | |
download | otp-345454e7dcfd4bc38992870cf5aa5ab7efe0c475.tar.gz otp-345454e7dcfd4bc38992870cf5aa5ab7efe0c475.tar.bz2 otp-345454e7dcfd4bc38992870cf5aa5ab7efe0c475.zip |
erts: Remove unused variables
Diffstat (limited to 'erts/etc/unix')
-rw-r--r-- | erts/etc/unix/to_erl.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c index 886b301997..b7c3c956c6 100644 --- a/erts/etc/unix/to_erl.c +++ b/erts/etc/unix/to_erl.c @@ -125,7 +125,7 @@ static void usage(char *pname) int main(int argc, char **argv) { char FIFO1[FILENAME_MAX], FIFO2[FILENAME_MAX]; - int i, len, wfd, rfd, result = 0; + int i, len, wfd, rfd; fd_set readfds; char buf[BUFSIZ]; char pipename[FILENAME_MAX]; @@ -367,7 +367,6 @@ int main(int argc, char **argv) } else { fprintf(stderr, "Error in select.\n"); - result = -1; break; } } @@ -398,7 +397,6 @@ int main(int argc, char **argv) close(wfd); if (len < 0) { fprintf(stderr, "Error in reading from stdin.\n"); - result = -1; } else { fprintf(stderr, "[EOF]\n\r"); } @@ -420,7 +418,6 @@ int main(int argc, char **argv) fprintf(stderr, "Error in writing to FIFO.\n"); close(rfd); close(wfd); - result = -1; break; } STATUS("\" OK\r\n"); @@ -447,7 +444,6 @@ int main(int argc, char **argv) close(wfd); if (len < 0) { fprintf(stderr, "Error in reading from FIFO.\n"); - result = -1; } else fprintf(stderr, "[End]\n\r"); break; @@ -456,7 +452,6 @@ int main(int argc, char **argv) if ((len=version_handshake(buf,len,wfd)) < 0) { close(rfd); close(wfd); - result = -1; break; } if (protocol_ver >= 1) { @@ -475,7 +470,6 @@ int main(int argc, char **argv) fprintf(stderr, "Error in writing to terminal.\n"); close(rfd); close(wfd); - result = -1; break; } STATUS("\" OK\r\n"); |