libsysprof-capture: Use SYSPROF_N_ELEMENTS macro instead of G_N_ELEMENTS

It does the same thing.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-07-02 10:13:26 +01:00
parent b509daaa42
commit 0785f32ce5
5 changed files with 15 additions and 13 deletions

View File

@ -80,7 +80,7 @@ sysprof_clock_init (void)
if (sysprof_clock != -1)
return;
for (unsigned int i = 0; i < G_N_ELEMENTS (clock_ids); i++)
for (unsigned int i = 0; i < SYSPROF_N_ELEMENTS (clock_ids); i++)
{
struct timespec ts;
int clock_id = clock_ids [i];