summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/ao-send-telem/ao-send-telem.c1
-rw-r--r--ao-tools/ao-stmload/.gitignore1
-rw-r--r--ao-tools/ao-stmload/ao-stmload.c9
3 files changed, 10 insertions, 1 deletions
diff --git a/ao-tools/ao-send-telem/ao-send-telem.c b/ao-tools/ao-send-telem/ao-send-telem.c
index c4c354e0..c6cc51a1 100644
--- a/ao-tools/ao-send-telem/ao-send-telem.c
+++ b/ao-tools/ao-send-telem/ao-send-telem.c
@@ -182,6 +182,7 @@ main (int argc, char **argv)
break;
case 'R':
realtime = 1;
+ break;
default:
usage(argv[0]);
break;
diff --git a/ao-tools/ao-stmload/.gitignore b/ao-tools/ao-stmload/.gitignore
new file mode 100644
index 00000000..dedb0094
--- /dev/null
+++ b/ao-tools/ao-stmload/.gitignore
@@ -0,0 +1 @@
+ao-stmload
diff --git a/ao-tools/ao-stmload/ao-stmload.c b/ao-tools/ao-stmload/ao-stmload.c
index e689539b..a471dcc4 100644
--- a/ao-tools/ao-stmload/ao-stmload.c
+++ b/ao-tools/ao-stmload/ao-stmload.c
@@ -112,10 +112,17 @@ struct load {
uint8_t buf[0];
};
+uint32_t round4(uint32_t a) {
+ return (a + 3) & ~3;
+}
+
struct load *
new_load (uint32_t addr, uint32_t len)
{
- struct load *new = calloc (1, sizeof (struct load) + len);
+ struct load *new;
+
+ len = round4(len);
+ new = calloc (1, sizeof (struct load) + len);
if (!new)
abort();