summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-17 16:18:04 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:54 +0200
commit10a9ff0c9b4f347ec24dab887a538b37274ee498 (patch)
treefb69605e51d9367833fcc49d02dcb68f36fa0d52 /src/util
parentec0b19bd6d25e3f4afea06b28c132b602bbff180 (diff)
downloadsssd-10a9ff0c9b4f347ec24dab887a538b37274ee498.tar.gz
sssd-10a9ff0c9b4f347ec24dab887a538b37274ee498.tar.bz2
sssd-10a9ff0c9b4f347ec24dab887a538b37274ee498.zip
Fix formating of variables with type: rlim_t
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sss_format.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/sss_format.h b/src/util/sss_format.h
index ac3d3828..a922ee36 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__ */