summaryrefslogtreecommitdiff
path: root/devel/got/files/openbsd-compat/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/got/files/openbsd-compat/util.h')
-rw-r--r--devel/got/files/openbsd-compat/util.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/devel/got/files/openbsd-compat/util.h b/devel/got/files/openbsd-compat/util.h
deleted file mode 100644
index d985406bdee6..000000000000
--- a/devel/got/files/openbsd-compat/util.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef _OPENBSD_COMPAT_UTIL_H_
-#define _OPENBSD_COMPAT_UTIL_H_
-
-#include <libutil.h>
-
-/*
- * fmt_scaled(3) specific flags.
- */
-#define FMT_SCALED_STRSIZE 7 /* minus sign, 4 digits, suffix, null byte */
-
-#define fmt_scaled(number, result) ({ \
- int64_t num = number; \
- int r = humanize_number(result, \
- FMT_SCALED_STRSIZE - (num < 0 ? 0 : 1), \
- num, "", HN_AUTOSCALE, HN_NOSPACE | HN_B); \
- r == -1 ? -1 : 0; \
-})
-
-#endif