From 10a9ff0c9b4f347ec24dab887a538b37274ee498 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 17 Jul 2013 16:18:04 +0200 Subject: Fix formating of variables with type: rlim_t --- src/util/sss_format.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util') diff --git a/src/util/sss_format.h b/src/util/sss_format.h index ac3d38289..a922ee367 100644 --- a/src/util/sss_format.h +++ b/src/util/sss_format.h @@ -32,4 +32,11 @@ /* key_serial_t is defined in keyutils.h as typedef int32_t */ #define SPRIkey_ser PRId32 +/* rlim_t is defined with conditional build as unsigned type. + * It seems that sizeof(rlim_t) is 8. It may be platform dependent, therefore + * the same format will be used like with uint64_t. + */ + +#define SPRIrlim PRIu64 + #endif /* __SSS_FORMAT_H__ */ -- cgit