+2014-08-28 Jonas 'Sortie' Termansen <sortie@maxsi.org> (tiny change)
+
+ * msginit.c: Include <stdint.h>.
+ (get_user_pwd): Cast uid_t value into uintmax_t and print it with
+ '%ju' format directive.
+
2014-08-27 Jonas 'Sortie' Termansen <sortie@maxsi.org> (tiny change)
* msgfilter.c (process_message): Use proper format directive for
#include <getopt.h>
#include <limits.h>
#include <locale.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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;