mirror of
https://repo.or.cz/socat.git
synced 2025-07-31 22:26:50 +00:00
on some 64bit systems a compiler warning "cast from pointer to integer of different size" was issued on some option definitions
This commit is contained in:
parent
30a3ec3baa
commit
1868e43317
9 changed files with 53 additions and 48 deletions
|
@ -10,6 +10,7 @@
|
|||
#define ODESC_ERROR ODESC_DONE /* maybe later */
|
||||
|
||||
#define XIO_OFFSETOF(x) ((size_t)&((xiosingle_t *)0)->x)
|
||||
#define XIO_SIZEOF(x) (sizeof(((struct single *)0)->x))
|
||||
|
||||
/* atomic structure for use in the option search table; keep compatible with
|
||||
struct wordent! */
|
||||
|
@ -20,7 +21,7 @@ struct optname {
|
|||
|
||||
/* keep consistent with xiohelp.c:optiontypenames[] ! */
|
||||
enum e_types {
|
||||
TYPE_CONST, /* keyword means a fix value */
|
||||
TYPE_CONST, /* keyword means a fix value - implies int type */
|
||||
TYPE_BIN, /* raw binary data, length determined by data */
|
||||
TYPE_BOOL, /* value is 0 or 1 (no-value is interpreted as 1) */
|
||||
TYPE_BYTE, /* unsigned char */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue