[PATCH ocserv 1/5] Fix typo maintainance -> maintenance
Mike Miller
mtmiller at ieee.org
Sun Jul 21 00:15:20 EDT 2013
---
src/main-resume.c | 2 +-
src/main.c | 10 +++++-----
src/main.h | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main-resume.c b/src/main-resume.c
index bcbcc24..57330bb 100644
--- a/src/main-resume.c
+++ b/src/main-resume.c
@@ -151,7 +151,7 @@ unsigned int max;
max = MAX(2*s->config->max_clients, DEFAULT_MAX_CACHED_TLS_SESSIONS);
if (s->tls_db->entries >= max) {
mslog(s, NULL, LOG_INFO, "maximum number of stored TLS sessions reached (%u)", max);
- need_maintainance = 1;
+ need_maintenance = 1;
return -1;
}
diff --git a/src/main.c b/src/main.c
index a2cc3c2..ecaad9c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -54,7 +54,7 @@
int syslog_open = 0;
static unsigned int terminate = 0;
static unsigned int reload_conf = 0;
-unsigned int need_maintainance = 0;
+unsigned int need_maintenance = 0;
static unsigned int need_children_cleanup = 0;
static void ms_sleep(unsigned ms)
@@ -358,7 +358,7 @@ static void handle_children(int signo)
static void handle_alarm(int signo)
{
- need_maintainance = 1;
+ need_maintenance = 1;
}
static void drop_privileges(main_server_st* s)
@@ -596,9 +596,9 @@ static void check_other_work(main_server_st *s)
}
/* Check if we need to expire any cookies */
- if (need_maintainance != 0) {
- need_maintainance = 0;
- mslog(s, NULL, LOG_INFO, "Performing maintainance");
+ if (need_maintenance != 0) {
+ need_maintenance = 0;
+ mslog(s, NULL, LOG_INFO, "Performing maintenance");
expire_tls_sessions(s);
expire_banned(s);
alarm(MAINTAINANCE_TIME(s));
diff --git a/src/main.h b/src/main.h
index ddc68c4..0eb6211 100644
--- a/src/main.h
+++ b/src/main.h
@@ -16,7 +16,7 @@ void write_pid_file(void);
void remove_pid_file(void);
/* set to 1 to start cleaning up cookies, sessions etc. */
-extern unsigned int need_maintainance;
+extern unsigned int need_maintenance;
struct listener_st {
struct list_node list;
--
1.8.3.2
More information about the openconnect-devel
mailing list