Skip to content

Commit

Permalink
Twingate changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim authored and Dmitry Adamushko committed Jun 24, 2024
1 parent 9de892c commit 6bc1876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/picotls.h
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ inline void ptls_buffer_init(ptls_buffer_t *buf, void *smallbuf, size_t smallbuf
inline void ptls_buffer_dispose(ptls_buffer_t *buf)
{
ptls_buffer__release_memory(buf);
*buf = (ptls_buffer_t){NULL, 0, 0, 0, 0};
memset(buf, 0, sizeof(*buf));
}

inline uint8_t *ptls_encode_quicint(uint8_t *p, uint64_t v)
Expand Down
5 changes: 3 additions & 2 deletions picotlsvs/picotls/wincompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#define WINCOMPAT_H

#include <stdint.h>
#define ssize_t int
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#include <Winsock2.h>
#include <ws2tcpip.h>
#include <malloc.h>
Expand Down Expand Up @@ -34,4 +35,4 @@ int wintimeofday(struct timeval *tv, struct timezone *tz);

#endif

#endif /* WINCOMPAT_H */
#endif /* WINCOMPAT_H */

0 comments on commit 6bc1876

Please sign in to comment.