diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-11-06 14:00:38 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2020-07-14 15:52:36 +0200 |
commit | e899fa69c3d6d792b2b231033724fe12fe07ccf9 (patch) | |
tree | 001bf90ce67c87718f8a8049d10c97cb7f5fe8b3 /include | |
parent | 855c685a8a186ebf49385613ebfec1390c78003d (diff) |
More unused code, when xdm-authorization is not used.
Diffstat (limited to 'include')
-rw-r--r-- | include/dm.h | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/include/dm.h b/include/dm.h index 60a6e15..dd7721c 100644 --- a/include/dm.h +++ b/include/dm.h @@ -52,17 +52,12 @@ from The Open Group. # include <limits.h> # include <time.h> # define Time_t time_t +# include <stdlib.h> -# include <X11/Xdmcp.h> +# include <X11/Xdmcp.h> -# ifdef _POSIX_SOURCE -# include <sys/wait.h> -# else -# define _POSIX_SOURCE -# include <sys/wait.h> -# undef _POSIX_SOURCE -# endif +# include <sys/wait.h> # define waitCode(w) (WIFEXITED(w) ? WEXITSTATUS(w) : 0) # define waitSig(w) (WIFSIGNALED(w) ? WTERMSIG(w) : 0) # define waitCore(w) 0 /* not in POSIX. so what? */ @@ -149,21 +144,6 @@ struct display { # define PROTO_TIMEOUT (30 * 60) /* 30 minutes should be long enough */ # define XDM_BROKEN_INTERVAL (120) /* server crashing more than once within */ /* two minutes is assumed to be broken! */ -struct protoDisplay { - struct protoDisplay *next; - XdmcpNetaddr address; /* UDP address */ - int addrlen; /* UDP address length */ - unsigned long date; /* creation date */ - CARD16 displayNumber; - CARD16 connectionType; - ARRAY8 connectionAddress; - CARD32 sessionID; - Xauth *fileAuthorization; - Xauth *xdmcpAuthorization; - ARRAY8 authenticationName; - ARRAY8 authenticationData; - XdmAuthKeyRec key; -}; struct greet_info { char *name; /* user name */ @@ -193,13 +173,7 @@ struct verify_info { # define RESERVER_DISPLAY 3 /* force server termination */ # define OPENFAILED_DISPLAY 4 /* XOpenDisplay failed, retry */ -# ifndef TRUE -# define TRUE 1 -# define FALSE 0 -# endif - extern char *config; - extern char *servers; extern int request_port; extern int debugLevel; @@ -293,9 +267,7 @@ extern void WaitForChild (void); * CloseOnFork flags */ -#define CLOSE_ALWAYS 0 -#define LEAVE_FOR_DISPLAY 1 - -#include <stdlib.h> +# define CLOSE_ALWAYS 0 +# define LEAVE_FOR_DISPLAY 1 #endif /* _DM_H_ */ |