[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [PATCH v2] Print a uid_t value portably
From: |
Jonas 'Sortie' Termansen |
Subject: |
[bug-gettext] [PATCH v2] Print a uid_t value portably |
Date: |
Wed, 27 Aug 2014 12:07:29 +0200 |
---
gettext-tools/src/msginit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c
index b3ef6d7..9d4ba7f 100644
--- a/gettext-tools/src/msginit.c
+++ b/gettext-tools/src/msginit.c
@@ -26,6 +26,7 @@
#include <getopt.h>
#include <limits.h>
#include <locale.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -1059,7 +1060,7 @@ get_user_pwd ()
if (userpasswd != NULL)
return userpasswd;
if (errno != 0)
- error (EXIT_FAILURE, errno, "getpwuid(\"%d\")", getuid ());
+ error (EXIT_FAILURE, errno, "getpwuid(%ju)", (uintmax_t)getuid ());
#endif
return NULL;
--
2.1.0