Fix EMPTY_BYTES definition
This commit is contained in:
parent
f966b37d7a
commit
0c97b76064
|
@ -6,7 +6,7 @@ typedef struct cmsg_bytes_t {
|
||||||
void *bytes;
|
void *bytes;
|
||||||
} cmsg_bytes_t;
|
} cmsg_bytes_t;
|
||||||
|
|
||||||
#define EMPTY_BYTES ((cmsg_bytes_t) { NULL, 0 })
|
#define EMPTY_BYTES ((cmsg_bytes_t) { .len = 0, .bytes = NULL })
|
||||||
|
|
||||||
extern cmsg_bytes_t cmsg_cstring_bytes(char const *cstr);
|
extern cmsg_bytes_t cmsg_cstring_bytes(char const *cstr);
|
||||||
extern cmsg_bytes_t cmsg_bytes_malloc_dup(cmsg_bytes_t src);
|
extern cmsg_bytes_t cmsg_bytes_malloc_dup(cmsg_bytes_t src);
|
||||||
|
|
Loading…
Reference in New Issue