staticize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5518 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -43,7 +43,7 @@ RCSID("$Id$");
|
|||||||
char **env;
|
char **env;
|
||||||
int num_env;
|
int num_env;
|
||||||
|
|
||||||
void
|
static void
|
||||||
extend_env(char *str)
|
extend_env(char *str)
|
||||||
{
|
{
|
||||||
env = realloc(env, (num_env + 1) * sizeof(*env));
|
env = realloc(env, (num_env + 1) * sizeof(*env));
|
||||||
@@ -52,7 +52,7 @@ extend_env(char *str)
|
|||||||
env[num_env++] = str;
|
env[num_env++] = str;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
add_env(const char *var, const char *value)
|
add_env(const char *var, const char *value)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -71,7 +71,7 @@ add_env(const char *var, const char *value)
|
|||||||
extend_env(str);
|
extend_env(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
copy_env(void)
|
copy_env(void)
|
||||||
{
|
{
|
||||||
char **p;
|
char **p;
|
||||||
@@ -79,7 +79,7 @@ copy_env(void)
|
|||||||
extend_env(*p);
|
extend_env(*p);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
exec_shell(const char *shell, int fallback)
|
exec_shell(const char *shell, int fallback)
|
||||||
{
|
{
|
||||||
char *sh;
|
char *sh;
|
||||||
@@ -125,7 +125,7 @@ struct getargs args[] = {
|
|||||||
|
|
||||||
int nargs = sizeof(args) / sizeof(args[0]);
|
int nargs = sizeof(args) / sizeof(args[0]);
|
||||||
|
|
||||||
void
|
static void
|
||||||
update_utmp(const char *username, const char *hostname)
|
update_utmp(const char *username, const char *hostname)
|
||||||
{
|
{
|
||||||
char *tty, *ttyn, ttname[32];
|
char *tty, *ttyn, ttname[32];
|
||||||
@@ -150,7 +150,7 @@ update_utmp(const char *username, const char *hostname)
|
|||||||
utmp_login(ttyn, username, hostname);
|
utmp_login(ttyn, username, hostname);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
do_login(struct passwd *pwd)
|
do_login(struct passwd *pwd)
|
||||||
{
|
{
|
||||||
int rootlogin = (pwd->pw_uid == 0);
|
int rootlogin = (pwd->pw_uid == 0);
|
||||||
@@ -194,7 +194,7 @@ do_login(struct passwd *pwd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef KRB5
|
#ifdef KRB5
|
||||||
int
|
static int
|
||||||
krb5_verify(struct passwd *pwd, const char *password)
|
krb5_verify(struct passwd *pwd, const char *password)
|
||||||
{
|
{
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
@@ -246,7 +246,7 @@ krb5_verify(struct passwd *pwd, const char *password)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
static int
|
||||||
check_password(struct passwd *pwd, const char *password)
|
check_password(struct passwd *pwd, const char *password)
|
||||||
{
|
{
|
||||||
if(pwd->pw_passwd == NULL)
|
if(pwd->pw_passwd == NULL)
|
||||||
@@ -269,7 +269,7 @@ check_password(struct passwd *pwd, const char *password)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
usage(int status)
|
usage(int status)
|
||||||
{
|
{
|
||||||
arg_printusage(args, nargs, NULL, "[username]");
|
arg_printusage(args, nargs, NULL, "[username]");
|
||||||
|
Reference in New Issue
Block a user