From ea62fed1c4c807b99332bc02acacc94332b8ecb1 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Mon, 19 Apr 2021 10:19:34 +0200 Subject: [PATCH] Janitorial fixes Part 1 Signed-off-by: Sebastien GODARD --- pcp_def_metrics.c | 4 ++-- pcp_stats.c | 6 +++--- systest.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pcp_def_metrics.c b/pcp_def_metrics.c index 1bd51ec..36973cc 100644 --- a/pcp_def_metrics.c +++ b/pcp_def_metrics.c @@ -29,7 +29,7 @@ #ifdef HAVE_PCP_IMPL_H #include #endif -#endif +#endif /* HAVE_PCP */ /* *************************************************************************** @@ -835,7 +835,7 @@ void pcp_def_net_nfsd_metrics(void) pmiAddMetric("nfs.server.reqs", pmiID(60, 7, 12), PM_TYPE_U32, indom, PM_SEM_COUNTER, pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE)); -#endif +#endif /* HAVE_PCP */ } /* diff --git a/pcp_stats.c b/pcp_stats.c index bcc1ed4..3191b4e 100644 --- a/pcp_stats.c +++ b/pcp_stats.c @@ -352,7 +352,7 @@ __print_funct_t pcp_print_memory_stats(struct activity *a, int curr) if (DISPLAY_MEMORY(a->opt_flags)) { - snprintf(buf, sizeof(buf), "%lu", (unsigned long)(smc->tlmkb >> 10)); + snprintf(buf, sizeof(buf), "%lu", (unsigned long) (smc->tlmkb >> 10)); pmiPutValue("hinv.physmem", NULL, buf); snprintf(buf, sizeof(buf), "%llu", smc->tlmkb); @@ -582,7 +582,7 @@ __print_funct_t pcp_print_net_dev_stats(struct activity *a, int curr) j = check_net_dev_reg(a, curr, !curr, i); if (j < 0) { - /* This is a newly registered interface. */ + /* This is a newly registered interface */ /* TODO: add a new instance? */ } @@ -639,7 +639,7 @@ __print_funct_t pcp_print_net_edev_stats(struct activity *a, int curr) j = check_net_edev_reg(a, curr, !curr, i); if (j < 0) { - /* This is a newly registered interface. */ + /* This is a newly registered interface */ /* TODO: add a new instance? */ } diff --git a/systest.c b/systest.c index 71f73b2..4f4c6cf 100644 --- a/systest.c +++ b/systest.c @@ -169,7 +169,7 @@ void next_time_step(void) if (errno == ENOENT) { /* No more kernel directories: Simulate a Ctrl/C */ int_handler(0); - return ; + return; } } -- 2.40.0