os: Remove unconfigurable DEFAULT_ACCESS_CONTROL macro
This commit is contained in:
parent
56ea4c769c
commit
66eb933ec9
|
@ -81,8 +81,5 @@ SOFTWARE.
|
|||
#define DEFAULT_SCREEN_SAVER_INTERVAL (10 * (60 * 1000))
|
||||
#define DEFAULT_SCREEN_SAVER_BLANKING PreferBlanking
|
||||
#define DEFAULT_SCREEN_SAVER_EXPOSURES AllowExposures
|
||||
#ifndef DEFAULT_ACCESS_CONTROL
|
||||
#define DEFAULT_ACCESS_CONTROL TRUE
|
||||
#endif
|
||||
|
||||
#endif /* SITE_H */
|
||||
|
|
|
@ -228,7 +228,7 @@ typedef struct _host {
|
|||
#define FreeHost(h) free(h)
|
||||
static HOST *selfhosts = NULL;
|
||||
static HOST *validhosts = NULL;
|
||||
static int AccessEnabled = DEFAULT_ACCESS_CONTROL;
|
||||
static int AccessEnabled = TRUE;
|
||||
static int LocalHostEnabled = FALSE;
|
||||
static int LocalHostRequested = FALSE;
|
||||
static int UsingXdmcp = FALSE;
|
||||
|
@ -951,7 +951,7 @@ ResetHosts(const char *display)
|
|||
int len;
|
||||
|
||||
siTypesInitialize();
|
||||
AccessEnabled = defeatAccessControl ? FALSE : DEFAULT_ACCESS_CONTROL;
|
||||
AccessEnabled = !defeatAccessControl;
|
||||
LocalHostEnabled = FALSE;
|
||||
while ((host = validhosts) != 0) {
|
||||
validhosts = host->next;
|
||||
|
|
Loading…
Reference in New Issue