Commit f57148ba f57148ba139b4d20c68a6d47471ce8eb5ff9f02e by Sergey Poznyakoff

All functions made static.

1 parent 77a8e657
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
41 #include <mailutils/mu_auth.h> 41 #include <mailutils/mu_auth.h>
42 42
43 /* System database */ 43 /* System database */
44 int 44 static int
45 mu_auth_system (void *return_data, struct passwd *pw) 45 mu_auth_system (void *return_data, struct passwd *pw)
46 { 46 {
47 char *mailbox_name; 47 char *mailbox_name;
...@@ -83,7 +83,7 @@ mu_auth_system_by_name (void *return_data, void *key, ...@@ -83,7 +83,7 @@ mu_auth_system_by_name (void *return_data, void *key,
83 return mu_auth_system (return_data, getpwnam (key)); 83 return mu_auth_system (return_data, getpwnam (key));
84 } 84 }
85 85
86 int 86 static int
87 mu_auth_system_by_uid (void *return_data, void *key, 87 mu_auth_system_by_uid (void *return_data, void *key,
88 void *unused_func_data, void *unused_call_data) 88 void *unused_func_data, void *unused_call_data)
89 { 89 {
...@@ -95,7 +95,7 @@ mu_auth_system_by_uid (void *return_data, void *key, ...@@ -95,7 +95,7 @@ mu_auth_system_by_uid (void *return_data, void *key,
95 return mu_auth_system (return_data, getpwuid (*(uid_t*) key)); 95 return mu_auth_system (return_data, getpwuid (*(uid_t*) key));
96 } 96 }
97 97
98 int 98 static int
99 mu_authenticate_generic (void *ignored_return_data, 99 mu_authenticate_generic (void *ignored_return_data,
100 void *key, 100 void *key,
101 void *ignored_func_data, 101 void *ignored_func_data,
...@@ -110,7 +110,7 @@ mu_authenticate_generic (void *ignored_return_data, ...@@ -110,7 +110,7 @@ mu_authenticate_generic (void *ignored_return_data,
110 } 110 }
111 111
112 /* Called only if generic fails */ 112 /* Called only if generic fails */
113 int 113 static int
114 mu_authenticate_system (void *ignored_return_data, 114 mu_authenticate_system (void *ignored_return_data,
115 void *key, 115 void *key,
116 void *ignored_func_data, 116 void *ignored_func_data,
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
47 #include <mailutils/mu_auth.h> 47 #include <mailutils/mu_auth.h>
48 48
49 #ifdef USE_VIRTUAL_DOMAINS 49 #ifdef USE_VIRTUAL_DOMAINS
50 struct passwd * 50 static struct passwd *
51 getpwnam_virtual (char *u) 51 getpwnam_virtual (char *u)
52 { 52 {
53 struct passwd *pw = NULL; 53 struct passwd *pw = NULL;
...@@ -85,7 +85,7 @@ getpwnam_virtual (char *u) ...@@ -85,7 +85,7 @@ getpwnam_virtual (char *u)
85 return pw; 85 return pw;
86 } 86 }
87 87
88 struct passwd * 88 static struct passwd *
89 getpwnam_ip_virtual (const char *u) 89 getpwnam_ip_virtual (const char *u)
90 { 90 {
91 struct sockaddr_in addr; 91 struct sockaddr_in addr;
...@@ -128,7 +128,7 @@ getpwnam_ip_virtual (const char *u) ...@@ -128,7 +128,7 @@ getpwnam_ip_virtual (const char *u)
128 } 128 }
129 129
130 /* Virtual domains */ 130 /* Virtual domains */
131 int 131 static int
132 mu_auth_virt_domain_by_name (void *return_data, void *key, 132 mu_auth_virt_domain_by_name (void *return_data, void *key,
133 void *unused_func_data, void *unused_call_data) 133 void *unused_func_data, void *unused_call_data)
134 { 134 {
...@@ -167,7 +167,7 @@ mu_auth_virt_domain_by_name (void *return_data, void *key, ...@@ -167,7 +167,7 @@ mu_auth_virt_domain_by_name (void *return_data, void *key,
167 return rc; 167 return rc;
168 } 168 }
169 #else 169 #else
170 int 170 static int
171 mu_auth_virt_domain_by_name (void *return_data, void *key, 171 mu_auth_virt_domain_by_name (void *return_data, void *key,
172 void *unused_func_data, void *unused_call_data) 172 void *unused_func_data, void *unused_call_data)
173 { 173 {
......