Skip to content

Commit

Permalink
Fix styling issues reported by Jason Goertzen
Browse files Browse the repository at this point in the history
Signed-off-by: Loganaden Velvindron <[email protected]>
  • Loading branch information
loganaden committed Jul 30, 2024
1 parent fc53c7e commit 5e79056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static void set_available_cpu_extensions(void) {
static void set_available_cpu_extensions(void) {
/* mark that this function has been called */
cpu_ext_data[OQS_CPU_EXT_INIT] = 1;
unsigned int cpu=0;
unsigned int cpu = 0;
size_t len;
char impl_buf[8];
int mib[2], ncpu;
Expand All @@ -163,8 +163,8 @@ static void set_available_cpu_extensions(void) {
char path[128];
struct aarch64_sysctl_cpu_id id;

len = sizeof id;
snprintf(path, sizeof path, "machdep.cpu%d.cpu_id", cpu);
len = sizeof(id);
snprintf(path, sizeof(path), "machdep.cpu%d.cpu_id", cpu);
if (sysctlbyname(path, &id, &len, NULL, 0) != 0) {
fprintf(stderr, "Error getting HWCAP for ARM on NetBSD\n");
return;
Expand Down

0 comments on commit 5e79056

Please sign in to comment.