diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-01-24 14:50:42 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-01-24 16:49:39 +0100 |
| commit | 91c9476c39826cc0dd94701540a591f4deba8b16 (patch) | |
| tree | 03d787dcb03b260ea92bf21d35fe73d721a231bf /sys/linux/socket_x25.txt | |
| parent | b874f62f15e9dd2cec4008424c4d87a9530e22ae (diff) | |
sys/linux: fix a TODO
We can actually express such size with:
define X25_SUBSCRIP_DEVICE_SIZE 200 - sizeof(long)
Diffstat (limited to 'sys/linux/socket_x25.txt')
| -rw-r--r-- | sys/linux/socket_x25.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/linux/socket_x25.txt b/sys/linux/socket_x25.txt index 82308a43a..938410bd8 100644 --- a/sys/linux/socket_x25.txt +++ b/sys/linux/socket_x25.txt @@ -58,12 +58,13 @@ x25_route_struct { } x25_subscrip_struct { -# TODO: the size is 200-sizeof(unsigned long), so 192 is wrong for compat. - device string[devnames, 192] + device string[devnames, X25_SUBSCRIP_DEVICE_SIZE] global_facil_mask intptr extended int32 } +define X25_SUBSCRIP_DEVICE_SIZE 200 - sizeof(long) + x25_facilities { winsize_in int32[1:127] winsize_out int32 |
