syscalls: make the addr structure sized
authorAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:05:53 +0000 (00:05 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2016 00:05:53 +0000 (00:05 +0000)
We don't need to worry about the size but cc65 can't hack 0 sized terminal
data objects. (cc65 bug)

Library/include/syscalls.h

index b2f07d7..7d99faf 100644 (file)
@@ -1,5 +1,4 @@
-/* SYSCALLS.H
- */
+/* SYSCALLS.H */
 #ifndef __SYSCALLS_H
 #define __SYSCALLS_H
 #ifndef __TYPES_H
@@ -53,7 +52,7 @@ struct _uzifilesys {
 struct _sockio {
         uint16_t sio_flags;
         uint16_t sio_addr_len;
-        uint8_t sio_addr[0];
+        uint8_t sio_addr[16];
 };
 
 struct hd_geometry {