From 273db408a8c7ad7240044569a6a4e988bace7f7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 24 Jan 2002 17:17:33 +0000 Subject: [PATCH] sort functions ... --- crypto/err/err.c | 15 +++++++++------ crypto/err/err.h | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) 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 ); -- 2.25.1