diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2001-05-08 05:02:50 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2001-05-08 05:02:50 +0000 |
commit | 1ffe510887d0e16782849bf364087fad844ff744 (patch) | |
tree | d7551546c128d355187f4885276a013605da2caa /modules | |
parent | 7626d42b8d9ae4ea90f731e79ce8a9acce1ca8c2 (diff) | |
download | pam-1ffe510887d0e16782849bf364087fad844ff744.tar.gz pam-1ffe510887d0e16782849bf364087fad844ff744.tar.bz2 pam-1ffe510887d0e16782849bf364087fad844ff744.zip |
Relevant BUGIDs: 416229
Purpose of commit: cleanup
Commit summary:
---------------
A little closer to supporting AIX. These changes are not all of the
suggested changes in the bug report that I will close as a result
of this checkin, but they are all the changes that I feel happy making
right now. I've avoided some of the more gratutitous changes, hoping
that the submitter will reevaluate what they need in the light of what
I have committed here.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_group/pam_group.c | 7 | ||||
-rw-r--r-- | modules/pam_issue/pam_issue.c | 2 | ||||
-rw-r--r-- | modules/pam_time/pam_time.c | 7 | ||||
-rwxr-xr-x | modules/register_static | 2 |
4 files changed, 16 insertions, 2 deletions
diff --git a/modules/pam_group/pam_group.c b/modules/pam_group/pam_group.c index af3c7ef3..4f6f34fb 100644 --- a/modules/pam_group/pam_group.c +++ b/modules/pam_group/pam_group.c @@ -36,6 +36,13 @@ const static char rcsid[] = #define PAM_GROUP_BUFLEN 1000 #define FIELD_SEPARATOR ';' /* this is new as of .02 */ +#ifdef TRUE +# undef TRUE +#endif +#ifdef FALSE +# undef FALSE +#endif + typedef enum { FALSE, TRUE } boolean; typedef enum { AND, OR } operator; diff --git a/modules/pam_issue/pam_issue.c b/modules/pam_issue/pam_issue.c index 2cb54bec..c4f2c6a6 100644 --- a/modules/pam_issue/pam_issue.c +++ b/modules/pam_issue/pam_issue.c @@ -22,13 +22,13 @@ #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> -#include <time.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include <sys/utsname.h> #include <utmp.h> #include <malloc.h> +#include <time.h> #include <security/_pam_macros.h> diff --git a/modules/pam_time/pam_time.c b/modules/pam_time/pam_time.c index 0964f776..9cf68280 100644 --- a/modules/pam_time/pam_time.c +++ b/modules/pam_time/pam_time.c @@ -36,6 +36,13 @@ const static char rcsid[] = #define PAM_TIME_BUFLEN 1000 #define FIELD_SEPARATOR ';' /* this is new as of .02 */ +#ifdef TRUE +# undef TRUE +#endif +#ifdef FALSE +# undef FALSE +#endif + typedef enum { FALSE, TRUE } boolean; typedef enum { AND, OR } operator; diff --git a/modules/register_static b/modules/register_static index 2067ac7e..f3aebb60 100755 --- a/modules/register_static +++ b/modules/register_static @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [ `basename $PWD` != "modules" ]; then echo "$0 must be run from the .../modules directory" |