summaryrefslogtreecommitdiffstats
path: root/arm.c
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2020-11-08 00:14:37 +0000
committerfishsoupisgood <github@madingley.org>2020-11-08 00:14:37 +0000
commit8531610431c4f0f60cbe64ed8ae362219e7f6520 (patch)
treedead8ef258b3726864d5d6ac664928f8baafc1dc /arm.c
parent225c1b60f48c05057775e58f373beaf6dd65a3c7 (diff)
downloadgalaxy_tools-8531610431c4f0f60cbe64ed8ae362219e7f6520.tar.gz
galaxy_tools-8531610431c4f0f60cbe64ed8ae362219e7f6520.tar.bz2
galaxy_tools-8531610431c4f0f60cbe64ed8ae362219e7f6520.zip
make state return status
Diffstat (limited to 'arm.c')
-rw-r--r--arm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arm.c b/arm.c
index 9f994cc..7cfdd3f 100644
--- a/arm.c
+++ b/arm.c
@@ -165,7 +165,8 @@ int show_state (int fd)
printf ("%6d | %-15s | %-15s | %-15s\n", i + 1, armed_to_str (armed[i]), state_to_str (state[i]), ready_to_str (ready[i]));
printf ("\n");
- return 0;
+
+ return armed[0] - '0';
}