From 13ec74481ce0137f7a60b3256cc4840073c77efa Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 7 Feb 2012 10:15:57 +0100 Subject: common: Replace macro based function calls by using DEFAULT_ERRSOURCE. * common/dns-cert.h (get_dns_cert): Remove macro. * common/dns-cert.c (_get_dns_cert): Rename to get_dns_cert. Replace arg ERRSOURCE by global DEFAULT_ERRSOURCE. * common/http.h (http_parse_uri, http_raw_connect, http_open) (http_open_document, http_wait_response): Remove macros. * common/http.c (_http_parse_uri, _http_raw_connect, _http_open) (_http_open_document, _http_wait_response): Remove underscore from symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE. * common/ssh-utils.h (ssh_get_fingerprint) (ssh_get_fingerprint_string): Remove macros. * common/ssh-utils.h (_ssh_get_fingerprint) (_ssh_get_fingerprint_string): Remove underscore from symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE. * common/tlv.h (parse_ber_header, parse_sexp): Remove macros. * common/tlv.c: Include util.h. (_parse_ber_header, _parse_sexp): Remove underscore from symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE. --- common/dns-cert.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'common/dns-cert.h') diff --git a/common/dns-cert.h b/common/dns-cert.h index a1d3d86da..351c357ea 100644 --- a/common/dns-cert.h +++ b/common/dns-cert.h @@ -19,12 +19,9 @@ #ifndef GNUPG_COMMON_DNS_CERT_H #define GNUPG_COMMON_DNS_CERT_H -gpg_error_t _get_dns_cert (const char *name, estream_t *r_key, - unsigned char **r_fpr, size_t *r_fprlen, - char **r_url, - gpg_err_source_t errsource); -#define get_dns_cert(a,b,c,d,e) \ - _get_dns_cert ((a),(b),(c),(d),(e), GPG_ERR_SOURCE_DEFAULT); +gpg_error_t get_dns_cert (const char *name, estream_t *r_key, + unsigned char **r_fpr, size_t *r_fprlen, + char **r_url); -- cgit v1.2.3