aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-09-17 14:55:09 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-09-17 14:55:09 +0000
commitffff40cd3874c1847da94f862725cfa8a4994076 (patch)
treeaa0ef19909cb268e2e145140b2bd0344f65421ab /src
parent1c43c78f8b0e895634e7becc5724a26718d79d3f (diff)
downloadanubis-ffff40cd3874c1847da94f862725cfa8a4994076.tar.gz
anubis-ffff40cd3874c1847da94f862725cfa8a4994076.tar.bz2
(T_ERROR): Removed.
(SOFT,HARD,SYNTAX): Removed (anubis_error,anubis_warning): New declaration
Diffstat (limited to 'src')
-rw-r--r--src/headers.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/headers.h b/src/headers.h
index 52bf1d1..b75c1e1 100644
--- a/src/headers.h
+++ b/src/headers.h
@@ -211,11 +211,6 @@
#define FAILS 1
#define ALL 2
-/* error types */
-#define SOFT 1
-#define HARD 2
-#define SYNTAX 3
-
typedef enum anubis_mode
{
anubis_transparent,
@@ -224,7 +219,7 @@ typedef enum anubis_mode
ANUBIS_MODE;
/* bit values for topt */
-#define T_ERROR 0x00000001
+/* 0x00000001 is free. Used to be T_ERROR */
#define T_SOCKS 0x00000002
#define T_SOCKS_V4 0x00000004
#define T_SOCKS_AUTH 0x00000008
@@ -334,7 +329,9 @@ int check_filename (char *, time_t *);
void write_pid_file (void);
/* errs.c */
-void anubis_error (int, const char *, ...);
+#define EXIT_ABORT 256
+void anubis_error (int, int, const char *, ...);
+void anubis_warning (int error_code, const char *fmt, ...);
void socket_error (const char *);
void hostname_error (char *);

Return to:

Send suggestions and report system problems to the System administrator.