From f2c346eaa486431ffa2a3adc05356159de834e2e Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 4 Sep 2013 16:28:06 +0200 Subject: Fix formating of variables with type: uid_t --- src/responder/common/negcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/responder') diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c index 769346370..a1f44789b 100644 --- a/src/responder/common/negcache.c +++ b/src/responder/common/negcache.c @@ -379,7 +379,7 @@ int sss_ncache_check_uid(struct sss_nc_ctx *ctx, int ttl, uid_t uid) char *str; int ret; - str = talloc_asprintf(ctx, "%s/%u", NC_UID_PREFIX, uid); + str = talloc_asprintf(ctx, "%s/%"SPRIuid, NC_UID_PREFIX, uid); if (!str) return ENOMEM; ret = sss_ncache_check_str(ctx, str, ttl); @@ -510,7 +510,7 @@ int sss_ncache_set_uid(struct sss_nc_ctx *ctx, bool permanent, uid_t uid) char *str; int ret; - str = talloc_asprintf(ctx, "%s/%u", NC_UID_PREFIX, uid); + str = talloc_asprintf(ctx, "%s/%"SPRIuid, NC_UID_PREFIX, uid); if (!str) return ENOMEM; ret = sss_ncache_set_str(ctx, str, permanent); -- cgit