svn rev #23563: trunk/src/kdc/
epeisach@MIT.EDU
epeisach at MIT.EDU
Fri Jan 1 11:41:04 EST 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23563
Commit By: epeisach
Log Message:
Change db_args from being a global to only defined in the function
that uses it. This removes a warning of shadowed variable names. Change
several functions to static when limited to main.c
Changed Files:
U trunk/src/kdc/extern.h
U trunk/src/kdc/main.c
Modified: trunk/src/kdc/extern.h
===================================================================
--- trunk/src/kdc/extern.h 2010-01-01 13:00:08 UTC (rev 23562)
+++ trunk/src/kdc/extern.h 2010-01-01 16:41:04 UTC (rev 23563)
@@ -103,7 +103,6 @@
extern krb5_rcache kdc_rcache; /* replay cache */
extern krb5_keyblock psr_key; /* key for predicted sam response */
extern const int kdc_modifies_kdb;
-extern char **db_args;
extern krb5_int32 max_dgram_reply_size; /* maximum datagram size */
extern const int vague_errors;
Modified: trunk/src/kdc/main.c
===================================================================
--- trunk/src/kdc/main.c 2010-01-01 13:00:08 UTC (rev 23562)
+++ trunk/src/kdc/main.c 2010-01-01 16:41:04 UTC (rev 23563)
@@ -77,18 +77,18 @@
extern int daemon(int, int);
#endif
-void usage (char *);
+static void usage (char *);
-krb5_sigtype request_exit (int);
-krb5_sigtype request_hup (int);
+static krb5_sigtype request_exit (int);
+static krb5_sigtype request_hup (int);
-void setup_signal_handlers (void);
+static void setup_signal_handlers (void);
-krb5_error_code setup_sam (void);
+static krb5_error_code setup_sam (void);
-void initialize_realms (krb5_context, int, char **);
+static void initialize_realms (krb5_context, int, char **);
-void finish_realms (void);
+static void finish_realms (void);
static int nofork = 0;
static const char *pid_file = NULL;
@@ -504,7 +504,7 @@
return(kret);
}
-krb5_sigtype
+static krb5_sigtype
request_exit(int signo)
{
signal_requests_exit = 1;
@@ -516,7 +516,7 @@
#endif
}
-krb5_sigtype
+static krb5_sigtype
request_hup(int signo)
{
signal_requests_hup = 1;
@@ -528,7 +528,7 @@
#endif
}
-void
+static void
setup_signal_handlers(void)
{
#ifdef POSIX_SIGNALS
@@ -551,13 +551,13 @@
return;
}
-krb5_error_code
+static krb5_error_code
setup_sam(void)
{
return krb5_c_make_random_key(kdc_context, ENCTYPE_DES_CBC_MD5, &psr_key);
}
-void
+static void
usage(char *name)
{
fprintf(stderr, "usage: %s [-x db_args]* [-d dbpathname] [-r dbrealmname]\n\t\t[-R replaycachename] [-m] [-k masterenctype] [-M masterkeyname]\n\t\t[-p port] [-P pid_file] [/]\n"
@@ -567,8 +567,8 @@
return;
}
-char **db_args = NULL;
-void
+
+static void
initialize_realms(krb5_context kcontext, int argc, char **argv)
{
int c;
@@ -587,6 +587,7 @@
char *no_refrls = NULL;
char *host_based_srvcs = NULL;
int db_args_size = 0;
+ char **db_args = NULL;
extern char *optarg;
@@ -822,7 +823,7 @@
return 0;
}
-void
+static void
finish_realms()
{
int i;
More information about the cvs-krb5
mailing list