=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tcfs/Attic/tcfserrors.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/tcfs/Attic/tcfserrors.h 2000/06/18 22:31:02 1.2 +++ src/usr.bin/tcfs/Attic/tcfserrors.h 2000/06/19 20:25:30 1.3 @@ -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 __P((int, char *)); -void tcfs_error (int error_type, char *arg); - #endif - -/* End of errors.h */