aboutsummaryrefslogtreecommitdiffstats
path: root/parse-common.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-06-07 14:15:56 +0200
committerMattias Andrée <m@maandree.se>2026-06-07 14:15:56 +0200
commit6139ee872d09d34618a3ab590a6da03fdc590837 (patch)
tree68e3e363d3c96c83aa52be1d42e332c586c0d24e /parse-common.c
parentFix whitespace typo (diff)
downloadlibcmap-6139ee872d09d34618a3ab590a6da03fdc590837.tar.gz
libcmap-6139ee872d09d34618a3ab590a6da03fdc590837.tar.bz2
libcmap-6139ee872d09d34618a3ab590a6da03fdc590837.tar.xz
Style improvementHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'parse-common.c')
-rw-r--r--parse-common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse-common.c b/parse-common.c
index 4e271c6..899debb 100644
--- a/parse-common.c
+++ b/parse-common.c
@@ -7,7 +7,7 @@
#include <unistd.h>
-#define ULTIMATE_CODEPOINT 0x10FFFFUL
+#define ULTIMATE_CODEPOINT 0x10FFFFul
static const char *argv0;
@@ -21,7 +21,7 @@ static size_t
parse(char *buf, size_t len)
{
static int prev_was_cr = 0;
- static size_t lineno = 1U;
+ static size_t lineno = 1u;
size_t ret = 0;
size_t off = 0;
size_t she;
@@ -94,7 +94,7 @@ main(int argc, char *argv[])
for (;;) {
if (len == bufsize) {
- buf = realloc(buf, bufsize += 8192U);
+ buf = realloc(buf, bufsize += 8192u);
if (!buf) {
fprintf(stderr, "%s: realloc %zu: %s\n", argv0, bufsize, strerror(errno));
exit(1);