diff options
| author | Juanma Barranquero | 2011-05-02 04:49:06 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-05-02 04:49:06 +0200 |
| commit | bafcf6a5549e9b0fcce1671c1100716fc4c0c9b3 (patch) | |
| tree | 0216671a89900f887afd40a3002fa4d2705d9b69 /src | |
| parent | 84621b7162b84bffeb5e46bf975ccd7318ad7cfb (diff) | |
| download | emacs-bafcf6a5549e9b0fcce1671c1100716fc4c0c9b3.tar.gz emacs-bafcf6a5549e9b0fcce1671c1100716fc4c0c9b3.zip | |
src/gnutls.c: Make static a bunch of variables.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/gnutls.c | 35 |
2 files changed, 30 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 625dfb07621..2137c133f54 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2011-05-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * gnutls.c (Qgnutls_log_level, Qgnutls_code, Qgnutls_anon) | ||
| 4 | (Qgnutls_x509pki, Qgnutls_e_interrupted, Qgnutls_e_again) | ||
| 5 | (Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake) | ||
| 6 | (gnutls_global_initialized, Qgnutls_bootprop_priority) | ||
| 7 | (Qgnutls_bootprop_trustfiles, Qgnutls_bootprop_keyfiles) | ||
| 8 | (Qgnutls_bootprop_callbacks, Qgnutls_bootprop_loglevel) | ||
| 9 | (Qgnutls_bootprop_hostname, Qgnutls_bootprop_verify_flags) | ||
| 10 | (Qgnutls_bootprop_verify_error, Qgnutls_bootprop_verify_hostname_error) | ||
| 11 | (Qgnutls_bootprop_callbacks_verify): Make static. | ||
| 12 | |||
| 1 | 2011-05-01 Andreas Schwab <schwab@linux-m68k.org> | 13 | 2011-05-01 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 14 | ||
| 3 | * callproc.c: Indentation fixup. | 15 | * callproc.c: Indentation fixup. |
diff --git a/src/gnutls.c b/src/gnutls.c index 16a459bd62f..8e41be20505 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -34,26 +34,26 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | static int | 34 | static int |
| 35 | emacs_gnutls_handle_error (gnutls_session_t, int err); | 35 | emacs_gnutls_handle_error (gnutls_session_t, int err); |
| 36 | 36 | ||
| 37 | Lisp_Object Qgnutls_log_level; | 37 | static Lisp_Object Qgnutls_log_level; |
| 38 | Lisp_Object Qgnutls_code; | 38 | static Lisp_Object Qgnutls_code; |
| 39 | Lisp_Object Qgnutls_anon, Qgnutls_x509pki; | 39 | static Lisp_Object Qgnutls_anon, Qgnutls_x509pki; |
| 40 | Lisp_Object Qgnutls_e_interrupted, Qgnutls_e_again, | 40 | static Lisp_Object Qgnutls_e_interrupted, Qgnutls_e_again, |
| 41 | Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake; | 41 | Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake; |
| 42 | int gnutls_global_initialized; | 42 | static int gnutls_global_initialized; |
| 43 | 43 | ||
| 44 | /* The following are for the property list of `gnutls-boot'. */ | 44 | /* The following are for the property list of `gnutls-boot'. */ |
| 45 | Lisp_Object Qgnutls_bootprop_priority; | 45 | static Lisp_Object Qgnutls_bootprop_priority; |
| 46 | Lisp_Object Qgnutls_bootprop_trustfiles; | 46 | static Lisp_Object Qgnutls_bootprop_trustfiles; |
| 47 | Lisp_Object Qgnutls_bootprop_keyfiles; | 47 | static Lisp_Object Qgnutls_bootprop_keyfiles; |
| 48 | Lisp_Object Qgnutls_bootprop_callbacks; | 48 | static Lisp_Object Qgnutls_bootprop_callbacks; |
| 49 | Lisp_Object Qgnutls_bootprop_loglevel; | 49 | static Lisp_Object Qgnutls_bootprop_loglevel; |
| 50 | Lisp_Object Qgnutls_bootprop_hostname; | 50 | static Lisp_Object Qgnutls_bootprop_hostname; |
| 51 | Lisp_Object Qgnutls_bootprop_verify_flags; | 51 | static Lisp_Object Qgnutls_bootprop_verify_flags; |
| 52 | Lisp_Object Qgnutls_bootprop_verify_error; | 52 | static Lisp_Object Qgnutls_bootprop_verify_error; |
| 53 | Lisp_Object Qgnutls_bootprop_verify_hostname_error; | 53 | static Lisp_Object Qgnutls_bootprop_verify_hostname_error; |
| 54 | 54 | ||
| 55 | /* Callback keys for `gnutls-boot'. Unused currently. */ | 55 | /* Callback keys for `gnutls-boot'. Unused currently. */ |
| 56 | Lisp_Object Qgnutls_bootprop_callbacks_verify; | 56 | static Lisp_Object Qgnutls_bootprop_callbacks_verify; |
| 57 | 57 | ||
| 58 | static void | 58 | static void |
| 59 | gnutls_log_function (int level, const char* string) | 59 | gnutls_log_function (int level, const char* string) |
| @@ -490,7 +490,7 @@ one trustfile (usually a CA bundle). */) | |||
| 490 | /* callbacks = Fplist_get (proplist, Qgnutls_bootprop_callbacks); */ | 490 | /* callbacks = Fplist_get (proplist, Qgnutls_bootprop_callbacks); */ |
| 491 | loglevel = Fplist_get (proplist, Qgnutls_bootprop_loglevel); | 491 | loglevel = Fplist_get (proplist, Qgnutls_bootprop_loglevel); |
| 492 | verify_flags = Fplist_get (proplist, Qgnutls_bootprop_verify_flags); | 492 | verify_flags = Fplist_get (proplist, Qgnutls_bootprop_verify_flags); |
| 493 | /* verify_error = Fplist_get (proplist, Qgnutls_bootprop_verify_error); */ | 493 | /* verify_error = Fplist_get (proplist, Qgnutls_bootprop_verify_error); */ |
| 494 | verify_hostname_error = Fplist_get (proplist, Qgnutls_bootprop_verify_hostname_error); | 494 | verify_hostname_error = Fplist_get (proplist, Qgnutls_bootprop_verify_hostname_error); |
| 495 | 495 | ||
| 496 | if (!STRINGP (hostname)) | 496 | if (!STRINGP (hostname)) |
| @@ -918,4 +918,5 @@ syms_of_gnutls (void) | |||
| 918 | defsubr (&Sgnutls_deinit); | 918 | defsubr (&Sgnutls_deinit); |
| 919 | defsubr (&Sgnutls_bye); | 919 | defsubr (&Sgnutls_bye); |
| 920 | } | 920 | } |
| 921 | #endif | 921 | |
| 922 | #endif /* HAVE_GNUTLS */ | ||