path: root/modules/pam_rhosts
diff options
authorSteve Langasek <>2003-07-13 05:14:08 +0000
committerSteve Langasek <>2003-07-13 05:14:08 +0000
commitb78954ae95f3250edd1f8026a2e443d2de2f8c8d (patch)
tree6de22356e2d6884f04c051a5b57435e81d016af7 /modules/pam_rhosts
parent7050b307e9e712471d987e0c5f8dd1cb2260511c (diff)
Relevant BUGIDs: patch 476936
Purpose of commit: cleanup Commit summary: --------------- Variant on Nalin's patch: 'unsigned int' is /usually/ 32 bits, but uint32_t is /always/ 32 bits -- where present. Since C99 is fairly recent, we may need some autoconf support for older platforms, but should at least be covered for Linux & Solaris. (Still a better choice than the non-standard sys/types.h, though.)
Diffstat (limited to 'modules/pam_rhosts')
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/pam_rhosts/pam_rhosts_auth.c b/modules/pam_rhosts/pam_rhosts_auth.c
index 7266b4e8..adaf16c9 100644
--- a/modules/pam_rhosts/pam_rhosts_auth.c
+++ b/modules/pam_rhosts/pam_rhosts_auth.c
@@ -87,6 +87,7 @@ int innetgr(const char *, const char *, const char *,const char *);
#include <sys/file.h>
#include <sys/signal.h>
#include <sys/stat.h>
+#include <stdint.h>
#include <syslog.h>
#ifndef _PATH_HEQUIV
#define _PATH_HEQUIV "/etc/hosts.equiv"
@@ -98,8 +99,9 @@ int innetgr(const char *, const char *, const char *,const char *);
#include <security/_pam_macros.h>
#include <security/_pam_modutil.h>
-/* to the best of my knowledge, all modern UNIX boxes have 32 bit integers */
-#define U32 unsigned int
+/* Use the C99 type; older platforms will need this to be typedef'ed
+ elsewhere */
+#define U32 uint32_t