From b78954ae95f3250edd1f8026a2e443d2de2f8c8d Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 13 Jul 2003 05:14:08 +0000 Subject: 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.) --- modules/pam_rhosts/pam_rhosts_auth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') 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 #include #include +#include #include #ifndef _PATH_HEQUIV #define _PATH_HEQUIV "/etc/hosts.equiv" @@ -98,8 +99,9 @@ int innetgr(const char *, const char *, const char *,const char *); #include #include -/* 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 /* -- cgit v1.2.3