From: Bodo Möller Date: Thu, 24 Jan 2002 17:17:33 +0000 (+0000) Subject: sort functions ... X-Git-Tag: OpenSSL-engine-0_9_6c^2^2~72 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=273db408a8c7ad7240044569a6a4e988bace7f7e;p=oweals%2Fopenssl.git sort functions ... --- diff --git a/crypto/err/err.c b/crypto/err/err.c index c909c3f4dc..3163163f71 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -676,26 +676,29 @@ unsigned long ERR_get_error_line_data(const char **file, int *line, const char **data, int *flags) { return(get_error_values(1,0,file,line,data,flags)); } + unsigned long ERR_peek_error(void) { return(get_error_values(0,0,NULL,NULL,NULL,NULL)); } -unsigned long ERR_peek_last_error(void) - { return(get_error_values(0,1,NULL,NULL,NULL,NULL)); } - unsigned long ERR_peek_error_line(const char **file, int *line) { return(get_error_values(0,0,file,line,NULL,NULL)); } -unsigned long ERR_peek_last_error_line(const char **file, int *line) - { return(get_error_values(0,1,file,line,NULL,NULL)); } - unsigned long ERR_peek_error_line_data(const char **file, int *line, const char **data, int *flags) { return(get_error_values(0,0,file,line,data,flags)); } + +unsigned long ERR_peek_last_error(void) + { return(get_error_values(0,1,NULL,NULL,NULL,NULL)); } + +unsigned long ERR_peek_last_error_line(const char **file, int *line) + { return(get_error_values(0,1,file,line,NULL,NULL)); } + unsigned long ERR_peek_last_error_line_data(const char **file, int *line, const char **data, int *flags) { return(get_error_values(0,1,file,line,data,flags)); } + static unsigned long get_error_values(int inc, int top, const char **file, int *line, const char **data, int *flags) { diff --git a/crypto/err/err.h b/crypto/err/err.h index adf52e21b7..8ce066bf99 100644 --- a/crypto/err/err.h +++ b/crypto/err/err.h @@ -242,12 +242,12 @@ unsigned long ERR_get_error(void); unsigned long ERR_get_error_line(const char **file,int *line); unsigned long ERR_get_error_line_data(const char **file,int *line, const char **data, int *flags); -unsigned long ERR_peek_last_error(void); unsigned long ERR_peek_error(void); unsigned long ERR_peek_error_line(const char **file,int *line); -unsigned long ERR_peek_last_error_line(const char **file,int *line); unsigned long ERR_peek_error_line_data(const char **file,int *line, const char **data,int *flags); +unsigned long ERR_peek_last_error(void); +unsigned long ERR_peek_last_error_line(const char **file,int *line); unsigned long ERR_peek_last_error_line_data(const char **file,int *line, const char **data,int *flags); void ERR_clear_error(void );