summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfserrors.h
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-19 20:25:32 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-19 20:25:32 +0000
commit069710c66bcab18d88bc9b3005f6f7e42d2cf3f1 (patch)
treeb3e74ef13738668c7900975f2ed7ff0c75dd72bc /usr.bin/tcfs/tcfserrors.h
parenta523e997c1a51cdd8790b5baa5063f9ae4d337ec (diff)
more cleaning. KNF
Diffstat (limited to 'usr.bin/tcfs/tcfserrors.h')
-rw-r--r--usr.bin/tcfs/tcfserrors.h41
1 files changed, 12 insertions, 29 deletions
diff --git a/usr.bin/tcfs/tcfserrors.h b/usr.bin/tcfs/tcfserrors.h
index 68dbe5021e4..9b761ef6c73 100644
--- a/usr.bin/tcfs/tcfserrors.h
+++ b/usr.bin/tcfs/tcfserrors.h
@@ -15,36 +15,19 @@
enum
{
- OK=0, /* Ok, no error */
- ER_CUSTOM, /* Custom error message */
- ER_UNKOPT, /* Unknown command line option */
- ER_AUTH, /* User authentication error */
- ER_MEM, /* Out of memory error */
- ER_TCFS, /* User is not allowed to use TCFS */
- ER_USER, /* User error */
- ER_PERM, /* Error calling TCFS_IOC_PERMANENT ioctl */
- ER_ENABLE, /* Error calling TCFS_IOC_LOGIN ioctl */
- ER_DISABLE, /* Error calling TCFS_IOC_DISABLE ioctl */
- ER_COUNT /* Error calling TCFS_IOC_COUNT ioctl */
+ OK=0, /* Ok, no error */
+ ER_CUSTOM, /* Custom error message */
+ ER_UNKOPT, /* Unknown command line option */
+ ER_AUTH, /* User authentication error */
+ ER_MEM, /* Out of memory error */
+ ER_TCFS, /* User is not allowed to use TCFS */
+ ER_USER, /* User error */
+ ER_PERM, /* Error calling TCFS_IOC_PERMANENT ioctl */
+ ER_ENABLE, /* Error calling TCFS_IOC_LOGIN ioctl */
+ ER_DISABLE, /* Error calling TCFS_IOC_DISABLE ioctl */
+ ER_COUNT /* Error calling TCFS_IOC_COUNT ioctl */
};
-static char *tcfs_errors_strings[]=
-{
- "Ok",
- NULL,
- "unknow option.",
- "authentication error.",
- "out of memory.",
- "you do not have a TCFS key.",
- "Who are you?!",
- "ioctl error while setting permanent flag.",
- "ioctl error while sending.",
- "ioctl error while removing key.",
- "ioctl error while getting key counter."
-};
-
-void tcfs_error (int error_type, char *arg);
+void tcfs_error __P((int, char *));
#endif
-
-/* End of errors.h */