summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libexec/login_token/init.c4
-rw-r--r--libexec/login_token/token.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/libexec/login_token/init.c b/libexec/login_token/init.c
index 0b3ab9b8d37..559171189af 100644
--- a/libexec/login_token/init.c
+++ b/libexec/login_token/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.5 2013/12/03 01:29:00 deraadt Exp $ */
+/* $OpenBSD: init.c,v 1.6 2020/09/06 17:08:29 mortimer Exp $ */
/*-
* Copyright (c) 1996 Berkeley Software Design, Inc. All rights reserved.
@@ -62,6 +62,8 @@ static struct token_types types[] = {
TOKEN_HEXMODE }, /* default */
};
+struct token_types *tt;
+
static struct {
char *name;
u_int value;
diff --git a/libexec/login_token/token.h b/libexec/login_token/token.h
index ae17e00ae43..d666558ca37 100644
--- a/libexec/login_token/token.h
+++ b/libexec/login_token/token.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: token.h,v 1.4 2002/09/06 18:19:14 deraadt Exp $ */
+/* $OpenBSD: token.h,v 1.5 2020/09/06 17:08:29 mortimer Exp $ */
/*-
* Copyright (c) 1995 Migration Associates Corp. All Rights Reserved
@@ -64,7 +64,7 @@ struct token_types {
u_int defmode; /* default mode (if none specified) */
};
-struct token_types *tt; /* what type we are running as now */
+extern struct token_types *tt; /* what type we are running as now */
/*
* Options