From 1c88e1391a947e6989f30ab5fb4fd935a1c3e4af Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 10 Jul 2018 14:50:22 +0000 Subject: Remove useless ifdefs --- greeter/Login.h | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/greeter/Login.h b/greeter/Login.h index b7c3660..73dae52 100644 --- a/greeter/Login.h +++ b/greeter/Login.h @@ -142,41 +142,12 @@ from The Open Group. /* notifyDone interface definition */ -# ifdef __OpenBSD__ -# include -# endif +# include # include -# include -# ifdef USE_PAM -# define NAME_LEN PAM_MAX_RESP_SIZE -# define PASSWORD_LEN PAM_MAX_RESP_SIZE -# endif - -/* Defined to be in by SUSv2 */ -# if !defined(PASSWORD_LEN) && defined(PASS_MAX) -# define PASSWORD_LEN PASS_MAX -# endif - -/* _PW_NAME_LEN is found in on OpenBSD > 2.8 (200012) */ -# if !defined(NAME_LEN) && defined(_PW_NAME_LEN) -# define NAME_LEN (_PW_NAME_LEN + 2) -# endif - -/* _PASSWORD_LEN appears to come from 4.4BSD-Lite */ -# if !defined(PASSWORD_LEN) && defined(_PASSWORD_LEN) -# define PASSWORD_LEN (_PASSWORD_LEN + 2) -# endif - -/* Fallbacks if no other definition found */ -# ifndef NAME_LEN -# define NAME_LEN 32 -# endif - -# ifndef PASSWORD_LEN -# define PASSWORD_LEN 32 -# endif +# define PASSWORD_LEN _PASSWORD_LEN +# define NAME_LEN (_PW_NAME_LEN + 2) typedef struct _LoginData { char name[NAME_LEN], passwd[PASSWORD_LEN]; @@ -215,4 +186,3 @@ extern int SetValue(Widget ctx, int promptId, char *value); extern const char *GetValue(Widget ctx, int promptId); #endif /* _XtLogin_h */ -/* DON'T ADD STUFF AFTER THIS #endif */ -- cgit v1.2.3