summaryrefslogtreecommitdiffstats
path: root/crypto/err
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-01-24 17:17:33 +0000
committerBodo Möller <bodo@openssl.org>2002-01-24 17:17:33 +0000
commit273db408a8c7ad7240044569a6a4e988bace7f7e (patch)
treeb624fae17ab5dcfc1292cde1bc26ec8144cbc382 /crypto/err
parent957b6db3b1085b63552e282fa9eeeb074a41e13c (diff)
sort functions ...
Diffstat (limited to 'crypto/err')
-rw-r--r--crypto/err/err.c15
-rw-r--r--crypto/err/err.h4
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 );