summaryrefslogtreecommitdiffstats
path: root/test/hstest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/hstest.c')
-rw-r--r--test/hstest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/hstest.c b/test/hstest.c
index cda9101c..d94ade20 100644
--- a/test/hstest.c
+++ b/test/hstest.c
@@ -159,7 +159,7 @@ int main(int argc, char *argv[])
char *filename;
mode_t filemode;
- int mode = 0;
+ int err, mode = 0;
int dd, rd, sd, fd;
uint16_t sco_handle, sco_mtu, vs;
@@ -245,7 +245,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "SCO audio channel connected (handle %d, mtu %d)\n", sco_handle, sco_mtu);
if (mode == RECORD)
- write(rd, "RING\r\n", 6);
+ err = write(rd, "RING\r\n", 6);
maxfd = (rd > sd) ? rd : sd;