static-ize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3752 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -45,7 +45,8 @@ RCSID("$Id$");
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
void strupr(char *s)
|
static void
|
||||||
|
strupr(char *s)
|
||||||
{
|
{
|
||||||
char *p = s;
|
char *p = s;
|
||||||
while(*p){
|
while(*p){
|
||||||
|
10
kdc/hprop.c
10
kdc/hprop.c
@@ -61,7 +61,8 @@ static krb5_data msched5;
|
|||||||
static int v4_db;
|
static int v4_db;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int open_socket(krb5_context context, const char *hostname)
|
static int
|
||||||
|
open_socket(krb5_context context, const char *hostname)
|
||||||
{
|
{
|
||||||
int s;
|
int s;
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
@@ -97,7 +98,7 @@ struct prop_data{
|
|||||||
|
|
||||||
int hdb_entry2value(krb5_context, hdb_entry*, krb5_data*);
|
int hdb_entry2value(krb5_context, hdb_entry*, krb5_data*);
|
||||||
|
|
||||||
krb5_error_code
|
static krb5_error_code
|
||||||
v5_prop(krb5_context context, HDB *db, hdb_entry *entry, void *appdata)
|
v5_prop(krb5_context context, HDB *db, hdb_entry *entry, void *appdata)
|
||||||
{
|
{
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
@@ -231,13 +232,14 @@ struct getargs args[] = {
|
|||||||
|
|
||||||
static int num_args = sizeof(args) / sizeof(args[0]);
|
static int num_args = sizeof(args) / sizeof(args[0]);
|
||||||
|
|
||||||
void usage(int ret)
|
static void
|
||||||
|
usage(int ret)
|
||||||
{
|
{
|
||||||
arg_printusage (args, num_args, "host ...");
|
arg_printusage (args, num_args, "host ...");
|
||||||
exit (ret);
|
exit (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
get_creds(krb5_context context, krb5_ccache *cache)
|
get_creds(krb5_context context, krb5_ccache *cache)
|
||||||
{
|
{
|
||||||
krb5_keytab keytab;
|
krb5_keytab keytab;
|
||||||
|
@@ -40,7 +40,8 @@
|
|||||||
|
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
int open_socket(krb5_context context)
|
static int
|
||||||
|
open_socket(krb5_context context)
|
||||||
{
|
{
|
||||||
int s, s2;
|
int s, s2;
|
||||||
int sin_len;
|
int sin_len;
|
||||||
@@ -96,7 +97,8 @@ struct getargs args[] = {
|
|||||||
|
|
||||||
static int num_args = sizeof(args) / sizeof(args[0]);
|
static int num_args = sizeof(args) / sizeof(args[0]);
|
||||||
|
|
||||||
void usage(int ret)
|
static void
|
||||||
|
usage(int ret)
|
||||||
{
|
{
|
||||||
arg_printusage (args, num_args, "");
|
arg_printusage (args, num_args, "");
|
||||||
exit (ret);
|
exit (ret);
|
||||||
|
@@ -67,14 +67,15 @@ struct getargs args[] = {
|
|||||||
|
|
||||||
int num_args = sizeof(args) / sizeof(args[0]);
|
int num_args = sizeof(args) / sizeof(args[0]);
|
||||||
|
|
||||||
void
|
static void
|
||||||
usage(int status)
|
usage(int status)
|
||||||
{
|
{
|
||||||
arg_printusage (args, num_args, "password");
|
arg_printusage (args, num_args, "password");
|
||||||
exit(status);
|
exit(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int
|
||||||
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
krb5_context context;
|
krb5_context context;
|
||||||
krb5_principal princ;
|
krb5_principal princ;
|
||||||
|
@@ -58,7 +58,7 @@ printable_time_long(time_t t)
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
print_cred(krb5_context context, krb5_creds *cred)
|
print_cred(krb5_context context, krb5_creds *cred)
|
||||||
{
|
{
|
||||||
char *str;
|
char *str;
|
||||||
@@ -84,7 +84,7 @@ print_cred(krb5_context context, krb5_creds *cred)
|
|||||||
free (str);
|
free (str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
print_cred_verbose(krb5_context context, krb5_creds *cred)
|
print_cred_verbose(krb5_context context, krb5_creds *cred)
|
||||||
{
|
{
|
||||||
int j;
|
int j;
|
||||||
|
Reference in New Issue
Block a user