diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-18 23:11:11 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-18 23:11:11 +0200 |
commit | 64b4d1fb665005c9442361094e02cfd25aa15f43 (patch) | |
tree | bb340cc7c445e6011471aa7049a898ef8ea28c7e /plugins | |
parent | d86005e66c9a0368e0c8e5747127253814670806 (diff) | |
download | monitoring-plugins-64b4d1fb665005c9442361094e02cfd25aa15f43.tar.gz |
Abbreviate function name
Make a very long function name at least a little bit shorter.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_http.c | 2 | ||||
-rw-r--r-- | plugins/netutils.h | 2 | ||||
-rw-r--r-- | plugins/sslutils.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 46c0c135..7e3f82ae 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -879,7 +879,7 @@ check_http (void) | |||
879 | elapsed_time_connect = (double)microsec_connect / 1.0e6; | 879 | elapsed_time_connect = (double)microsec_connect / 1.0e6; |
880 | if (use_ssl == TRUE) { | 880 | if (use_ssl == TRUE) { |
881 | gettimeofday (&tv_temp, NULL); | 881 | gettimeofday (&tv_temp, NULL); |
882 | result = np_net_ssl_init_with_hostname_version_and_certificate(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey); | 882 | result = np_net_ssl_init_with_hostname_version_and_cert(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey); |
883 | if (result != STATE_OK) | 883 | if (result != STATE_OK) |
884 | return result; | 884 | return result; |
885 | microsec_ssl = deltime (tv_temp); | 885 | microsec_ssl = deltime (tv_temp); |
diff --git a/plugins/netutils.h b/plugins/netutils.h index 765b3d5f..5a495c91 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h | |||
@@ -101,7 +101,7 @@ extern int address_family; | |||
101 | int np_net_ssl_init(int sd); | 101 | int np_net_ssl_init(int sd); |
102 | int np_net_ssl_init_with_hostname(int sd, char *host_name); | 102 | int np_net_ssl_init_with_hostname(int sd, char *host_name); |
103 | int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version); | 103 | int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version); |
104 | int np_net_ssl_init_with_hostname_version_and_certificate(int sd, char *host_name, int version, char *cert, char *privkey); | 104 | int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey); |
105 | void np_net_ssl_cleanup(); | 105 | void np_net_ssl_cleanup(); |
106 | int np_net_ssl_write(const void *buf, int num); | 106 | int np_net_ssl_write(const void *buf, int num); |
107 | int np_net_ssl_read(void *buf, int num); | 107 | int np_net_ssl_read(void *buf, int num); |
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index 4927e361..78317f83 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
@@ -45,10 +45,10 @@ int np_net_ssl_init_with_hostname(int sd, char *host_name) { | |||
45 | } | 45 | } |
46 | 46 | ||
47 | int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version) { | 47 | int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version) { |
48 | return np_net_ssl_init_with_hostname_version_and_certificate(sd, host_name, version, NULL, NULL); | 48 | return np_net_ssl_init_with_hostname_version_and_cert(sd, host_name, version, NULL, NULL); |
49 | } | 49 | } |
50 | 50 | ||
51 | int np_net_ssl_init_with_hostname_version_and_certificate(int sd, char *host_name, int version, char *cert, char *privkey) { | 51 | int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey) { |
52 | const SSL_METHOD *method = NULL; | 52 | const SSL_METHOD *method = NULL; |
53 | 53 | ||
54 | switch (version) { | 54 | switch (version) { |