Skip to content

Commit 7c9a673

Browse files
committed
Fix error with cffi version 1.16 and newer
cffi seems to have started verifying that the cdef and the c compiler agree on struct sizes. The sizes for the tr_{tcp,ssh}_config structs did not match anymore with current rtrlib versions. Fix this by making the size variable in the cdef so cffi asks the c compiler about the size.
1 parent 06e68c7 commit 7c9a673

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rtrlib.cdef

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ struct tr_tcp_config {
118118
char *host;
119119
char *port;
120120
char *bindaddr;
121+
...;
121122
};
122123

123124
/**
@@ -758,4 +759,5 @@ struct tr_ssh_config {
758759
char *username;
759760
char *server_hostkey_path;
760761
char *client_privkey_path;
762+
...;
761763
};

0 commit comments

Comments
 (0)