diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-05-07 13:25:36 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-05-07 14:33:26 -0400 |
| commit | cc95f28f648ee56a189f733f25efcb986d9f205a (patch) | |
| tree | 7f48f2308f87e1c69b4ca997ca373964a67ae65a /test/pkuuid.c | |
| parent | 86b9b350c6344e78f0d22bcd054e568130a40b08 (diff) | |
pk.h: compiler warnings
Diffstat (limited to 'test/pkuuid.c')
| -rw-r--r-- | test/pkuuid.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/pkuuid.c b/test/pkuuid.c index 3491ea3..3ea66b0 100644 --- a/test/pkuuid.c +++ b/test/pkuuid.c @@ -1,6 +1,4 @@ -#define PK_IMPL_UUID -#define PK_IMPL_TMR // #define PK_UUID_CLOCK CLOCK_REALTIME_ALARM #include "../pkmacros.h" @@ -35,13 +33,13 @@ print_uuid_v7_breakdown(FILE *f, struct pk_uuid id) fprintf(f, "\n"); fprintf(f, "var 2 0b"); - fprintf(f, "%.c", (id.uuid[8] & 0x80) ? '1' : '0'); - fprintf(f, "%.c", (id.uuid[8] & 0x40) ? '1' : '0'); + fprintf(f, "%c", (id.uuid[8] & 0x80) ? '1' : '0'); + fprintf(f, "%c", (id.uuid[8] & 0x40) ? '1' : '0'); fprintf(f, "\n"); fprintf(f, "rand_b 62 0b"); - fprintf(f, "%.c", (id.uuid[8] & 0x20) ? '1' : '0'); - fprintf(f, "%.c", (id.uuid[8] & 0x10) ? '1' : '0'); + fprintf(f, "%c", (id.uuid[8] & 0x20) ? '1' : '0'); + fprintf(f, "%c", (id.uuid[8] & 0x10) ? '1' : '0'); fprintf(f, ", 0x"); fprintf(f, "%.x", (id.uuid[8] & 0x0F)); fprintf(f, "%.2x", id.uuid[9]); |
