summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/err.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/err.c b/lib/err.c
index 8d26d3c..d111115 100644
--- a/lib/err.c
+++ b/lib/err.c
@@ -10,29 +10,29 @@
#include <radsec/radsec.h>
#include <radsec/radsec-impl.h>
-const char *_errtxt[] = {
+static const char *_errtxt[] = {
"SUCCESS", /* 0 RSE_OK */
"out of memory", /* 1 RSE_NOMEM */
"not yet implemented", /* 2 RSE_NOSYS */
- "invalid handle" /* 3 RSE_INVALID_CTX */
- "invalid connection" /* 4 RSE_INVALID_CONN */
- "connection type mismatch" /* 5 RSE_CONN_TYPE_MISMATCH */
- "FreeRadius error" /* 6 RSE_FR */
- "bad hostname or port" /* 7 RSE_BADADDR */
- "no peer configured" /* 8 RSE_NOPEER */
- "libevent error" /* 9 RSE_EVENT */
- "connection error" /* 10 RSE_CONNERR */
- "invalid configuration file" /* 11 RSE_CONFIG */
- "authentication failed" /* 12 RSE_BADAUTH */
- "internal error" /* 13 RSE_INTERNAL */
- "SSL error" /* 14 RSE_SSLERR */
- "ERR 15" /* RSE_ */
- "ERR 16" /* RSE_ */
- "ERR 17" /* RSE_ */
- "ERR 18" /* RSE_ */
- "ERR 19" /* RSE_ */
- "ERR 20" /* RSE_ */
- "some error" /* 21 RSE_SOME_ERROR */
+ "invalid handle", /* 3 RSE_INVALID_CTX */
+ "invalid connection", /* 4 RSE_INVALID_CONN */
+ "connection type mismatch", /* 5 RSE_CONN_TYPE_MISMATCH */
+ "FreeRadius error", /* 6 RSE_FR */
+ "bad hostname or port", /* 7 RSE_BADADDR */
+ "no peer configured", /* 8 RSE_NOPEER */
+ "libevent error", /* 9 RSE_EVENT */
+ "connection error", /* 10 RSE_CONNERR */
+ "invalid configuration file", /* 11 RSE_CONFIG */
+ "authentication failed", /* 12 RSE_BADAUTH */
+ "internal error", /* 13 RSE_INTERNAL */
+ "SSL error", /* 14 RSE_SSLERR */
+ "ERR 15", /* RSE_ */
+ "ERR 16", /* RSE_ */
+ "ERR 17", /* RSE_ */
+ "ERR 18", /* RSE_ */
+ "ERR 19", /* RSE_ */
+ "ERR 20", /* RSE_ */
+ "some error", /* 21 RSE_SOME_ERROR */
};
#define ERRTXT_SIZE (sizeof(_errtxt) / sizeof(*_errtxt))
@@ -62,7 +62,7 @@ _err_vcreate (unsigned int code, const char *file, int line, const char *fmt,
char *sep = strrchr (file, '/');
if (sep)
file = sep + 1;
- snprintf (err->buf + n, sizeof(err->buf) - n, " (%s: %d)", file,
+ snprintf (err->buf + n, sizeof(err->buf) - n, " (%s:%d)", file,
line);
}
}