summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-11-21 01:08:30 +0000
committerLaurent Bercot <ska@appnovation.com>2022-11-21 01:08:30 +0000
commit1f8f72ced6a4d7043e5b47d22960cde96fbb1a71 (patch)
treeb4d25627aa95b3eaf6f1bce66286ee28f5207cc3
parent4280d43e83deb0a9ed00ce362d3f01f273f24630 (diff)
downloadskalibs-1f8f72ced6a4d7043e5b47d22960cde96fbb1a71.tar.xz
bits-template: fix typos
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--AUTHORS1
-rw-r--r--src/headers/bits-template4
2 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index e2dd8b6..bbe2afe 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -45,3 +45,4 @@ Thanks to:
Amitai Schleier <schmonz@schmonz.com>
psykose <alice@ayaya.dev>
Adam Beardwood <git@spad.co.uk>
+ Cormac Stephenson <c7s@kasku.net>
diff --git a/src/headers/bits-template b/src/headers/bits-template
index 306076d..23222d6 100644
--- a/src/headers/bits-template
+++ b/src/headers/bits-template
@@ -19,7 +19,7 @@ extern void uint@BITS@_bswapn (uint@BITS@_t *, size_t) ;
#define uint@BITS@0_ofmt(s, o, n) uint@BITS@0_fmt_base(s, o, (n), 8)
#define uint@BITS@_xfmt(s, x) uint@BITS@_fmt_base(s, (x), 16)
#define uint@BITS@0_xfmt(s, x, n) uint@BITS@0_fmt_base(s, x, (n), 16)
-#define uint@BITS@_bfmt(s, b) uint@BITS@0_fmt_base(s, (b), 2)
+#define uint@BITS@_bfmt(s, b) uint@BITS@_fmt_base(s, (b), 2)
#define uint@BITS@0_bfmt(s, b, n) uint@BITS@0_fmt_base(s, b, (n), 2)
extern size_t uint@BITS@_fmtlist (char *, uint@BITS@_t const *, size_t) ;
@@ -42,7 +42,7 @@ extern size_t uint@BITS@_scanlist (uint@BITS@_t *, size_t, char const *, size_t
#define int@BITS@_fmt(s, u) int@BITS@_fmt_base(s, (u), 10)
#define int@BITS@_ofmt(s, o) int@BITS@_fmt_base(s, (o), 8)
#define int@BITS@_xfmt(s, x) int@BITS@_fmt_base(s, (x), 16)
-#define int@BITS@_bfmt(s, b) int@BITS@0_fmt_base(s, (b), 2)
+#define int@BITS@_bfmt(s, b) int@BITS@_fmt_base(s, (b), 2)
extern size_t int@BITS@_fmtlist (char *, int@BITS@_t const *, size_t) ;