From 69a28d6771241b82dd4e2a9c78e838682562a03c Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 4 Sep 2016 21:42:16 +0100 Subject: Remove a few fields used only by the dynamic greeter --- include/dm.h | 4 ---- xenodm/dpylist.c | 1 - xenodm/session.c | 5 ----- 3 files changed, 10 deletions(-) diff --git a/include/dm.h b/include/dm.h index 509a2b8..58b533a 100644 --- a/include/dm.h +++ b/include/dm.h @@ -166,7 +166,6 @@ struct display { int authNum; /* number of authorizations */ char *authFile; /* file to store authorization in */ - int version; /* to keep dynamic greeter clued in */ /* add new fields only after here. And preferably at the end. */ Display *dpy; /* Display */ @@ -197,8 +196,6 @@ struct greet_info { char *name; /* user name */ char *password; /* user password */ char *string; /* random string */ - char *passwd; /* binary compat with DEC */ - int version; /* for dynamic greeter to see */ /* add new fields below this line, and preferably at the end */ Boolean allow_null_passwd; /* allow null password on login */ Boolean allow_root_login; /* allow direct root login */ @@ -212,7 +209,6 @@ struct verify_info { char **argv; /* arguments to session */ char **userEnviron; /* environment for session */ char **systemEnviron;/* environment for startup/reset */ - int version; /* for dynamic greeter to see */ /* add new fields below this line, and preferably at the end */ }; diff --git a/xenodm/dpylist.c b/xenodm/dpylist.c index 74fa734..da77927 100644 --- a/xenodm/dpylist.c +++ b/xenodm/dpylist.c @@ -208,7 +208,6 @@ NewDisplay (char *name, char *class) d->reservTries = 0; d->terminateServer = 0; d->grabTimeout = 0; - d->version = 1; /* registered with The Open Group */ d->dpy = NULL; d->windowPath = NULL; displays = d; diff --git a/xenodm/session.c b/xenodm/session.c index e225504..9eda414 100644 --- a/xenodm/session.c +++ b/xenodm/session.c @@ -194,11 +194,6 @@ ManageSession (struct display *d) greet_user_proc = GreetUser; - /* tell the possibly dynamically loaded greeter function - * what data structure formats to expect. - * These version numbers are registered with The Open Group. */ - verify.version = 1; - greet.version = 1; greet_stat = (*greet_user_proc)(d, &dpy, &verify, &greet, &dlfuncs); if (greet_stat == Greet_Success) { -- cgit v1.2.3