aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/unix
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-04-07 16:16:48 +0200
committerHenrik Nord <[email protected]>2011-04-07 16:16:59 +0200
commit5ad09d2928fd4584ce6dc50f44825b3f6d7ef66a (patch)
treed0a3d7062cfb7b87e114fdf37eeaac790beb69d4 /erts/etc/unix
parent4144043663ffe31742c1a7c3fe50135c8382db7c (diff)
parent345454e7dcfd4bc38992870cf5aa5ab7efe0c475 (diff)
downloadotp-5ad09d2928fd4584ce6dc50f44825b3f6d7ef66a.tar.gz
otp-5ad09d2928fd4584ce6dc50f44825b3f6d7ef66a.tar.bz2
otp-5ad09d2928fd4584ce6dc50f44825b3f6d7ef66a.zip
Merge branch 'ta/erts-unused-vars' into dev
* ta/erts-unused-vars: erts: Remove unused variables OTP-9205
Diffstat (limited to 'erts/etc/unix')
-rw-r--r--erts/etc/unix/to_erl.c8
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");