From 8b95deb3424bbfe1f87d2b920cf25aacccb84234 Mon Sep 17 00:00:00 2001 From: Utz-Uwe Haus <uhaus@cray.com> Date: Mon, 20 Sep 2021 16:26:25 +0200 Subject: [PATCH] Fix compiler warnings in GFS transport paths --- maestro/pool_client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maestro/pool_client.c b/maestro/pool_client.c index cba5ba83..cc44e96d 100644 --- a/maestro/pool_client.c +++ b/maestro/pool_client.c @@ -10,6 +10,7 @@ #include "maestro/i_ofi.h" #include "maestro/i_statistics.h" #include "i_subscription_registry.h" +#include "maestro/i_misc.h" #include <unistd.h> #include <inttypes.h> @@ -320,7 +321,7 @@ mstro_pc__construct_gfs_path_for_cdo(const mstro_cdo src_cdo, /* make the directory path */ WITH_CDO_ID_STR(idstr, &src_cdo->gid, { - int n = snprintf(*path, l1, "%s%" PRIappid "/%s/", + size_t n = snprintf(*path, l1, "%s%" PRIappid "/%s/", g_mstro_transport_gfs_dir, g_pool_app_id, idstr); @@ -338,7 +339,7 @@ mstro_pc__construct_gfs_path_for_cdo(const mstro_cdo src_cdo, /* this time make the file path */ WITH_CDO_ID_STR(idstr, &src_cdo->gid, { - int n = snprintf(*path, l, "%s%" PRIappid "/%s/%" PRIlocalid, + size_t n = snprintf(*path, l, "%s%" PRIappid "/%s/%" PRIlocalid, g_mstro_transport_gfs_dir, g_pool_app_id, idstr, -- GitLab