summaryrefslogtreecommitdiff
path: root/src/osfp_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osfp_common.h')
-rw-r--r--src/osfp_common.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/osfp_common.h b/src/osfp_common.h
index 5d1d7bf..12d84a1 100644
--- a/src/osfp_common.h
+++ b/src/osfp_common.h
@@ -84,20 +84,6 @@
#define OSFP_TCP_OPT_TFO_MIN_LEN 4 /* kind, len, 2 bytes cookie: 4 */
#define OSFP_TCP_OPT_TFO_MAX_LEN 18 /* kind, len, 18 */
-
-#define OSFP_WRITE_STRING_TO_BUF(ret, buf, size, off, ...) do { \
- ret = snprintf((char *)buf + off, \
- size - off, \
- __VA_ARGS__); \
- if (ret >= 0) { \
- if ( (off + ret) >= size) { \
- off = size - 1; \
- } else { \
- off += ret; \
- } \
- } \
- } while (0)
-
static inline unsigned long long osfp_rdtsc(void)
{
union {