fix prototype

This commit is contained in:
quackerd 2022-06-10 00:36:36 +08:00
parent f53a24e7eb
commit 8a93a0e94c
2 changed files with 7 additions and 7 deletions

View File

@ -10,16 +10,16 @@ extern "C" {
struct topo_desc; struct topo_desc;
int int
topo_num_core(); topo_num_core(void);
int int
topo_num_numa(); topo_num_numa(void);
int int
topo_core_to_numa(int coreid); topo_core_to_numa(int coreid);
void void
topo_destroy(); topo_destroy(void);
int int
topo_init(int enable_alloc, int verbose); topo_init(int enable_alloc, int verbose);

8
topo.c
View File

@ -417,13 +417,13 @@ desc_init(struct topo_desc * desc, int enable_alloc, int verbose)
// public APIs // public APIs
// //
int int
topo_num_core() topo_num_core(void)
{ {
return g_default_desc.num_core; return g_default_desc.num_core;
} }
int int
topo_num_numa() topo_num_numa(void)
{ {
return g_default_desc.num_numa; return g_default_desc.num_numa;
} }
@ -435,7 +435,7 @@ topo_core_to_numa(int coreid)
} }
void void
topo_destroy() topo_destroy(void)
{ {
desc_destroy(&g_default_desc); desc_destroy(&g_default_desc);
} }
@ -453,7 +453,7 @@ topo_free(unsigned int node, void * addr)
} }
uint64_t uint64_t
topo_uptime_ns() topo_uptime_ns(void)
{ {
return topo_desc_uptime_ns(&g_default_desc); return topo_desc_uptime_ns(&g_default_desc);
} }