diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-11-06 12:41:25 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2020-07-14 15:52:35 +0200 |
commit | 17846f03629d7e2be9319a6126564c026df5167d (patch) | |
tree | a01cbdc873b9aa43221ce1d4ee467cbed18e38d9 /greeter | |
parent | 8b608fe8da3e6ec6cd4b90c5c58a739bb3713e1e (diff) |
GreetUser() doen't need to return the X display pointer.
Diffstat (limited to 'greeter')
-rw-r--r-- | greeter/greet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/greeter/greet.c b/greeter/greet.c index 16b5a37..420f679 100644 --- a/greeter/greet.c +++ b/greeter/greet.c @@ -295,21 +295,21 @@ FailedLogin (struct display *d, const char *username) _X_EXPORT greet_user_rtn GreetUser( struct display *d, - Display ** dpy, struct verify_info *verify, struct greet_info *greet) { int i; Arg arglist[2]; + Display *dpy; - *dpy = InitGreet (d); + dpy = InitGreet (d); /* * Run the setup script - note this usually will not work when * the server is grabbed, so we don't even bother trying. */ if (!d->grabServer) SetupDisplay (d); - if (!*dpy) { + if (!dpy) { LogError ("Cannot reopen display %s for greet window\n", d->name); exit (RESERVER_DISPLAY); } @@ -342,7 +342,7 @@ greet_user_rtn GreetUser( bzero (greet->password, strlen(greet->password)); } } - DeleteXloginResources (d, *dpy); + DeleteXloginResources (d, dpy); CloseGreet (d); Debug ("Greet loop finished %d\n", getpid()); /* |