X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fcomerr%2Ferror_table.h;h=a58ab478fdd12335104f65cea5442a9973dc4d43;hp=929dad897af519c7184da678955e1e854881deaa;hb=07e474e35e070b9ddcc5158796c95442aea0597f;hpb=872bc94f8ce5d38f0a12e7cec455a2cb368b7427 diff --git a/src/comerr/error_table.h b/src/comerr/error_table.h index 929dad8..a58ab47 100644 --- a/src/comerr/error_table.h +++ b/src/comerr/error_table.h @@ -5,15 +5,14 @@ * For copyright info, see mit-sipb-cr.h. */ -#include - +#include #include -#ifndef _ET_H +#ifndef _AFS_ET_H struct error_table { char const *const *msgs; - afs_int32 base; + int base; int n_msgs; }; struct et_list { @@ -25,7 +24,14 @@ struct et_list { #define ERRCODE_RANGE 8 /* # of bits to shift table number */ #define BITS_PER_CHAR 6 /* # bits to shift per character in name */ -extern char const *error_table_name(afs_int32 num); -extern void add_to_error_table(struct et_list *new_table); -#define _ET_H +extern char const *afs_error_table_name(int num); +extern void afs_add_to_error_table(struct et_list *new_table); +extern const char *afs_com_right(struct et_list *list, long code); +extern const char *afs_com_right_r(struct et_list *list, long code, char *str, size_t len); + +#ifdef AFS_OLD_COM_ERR +#define error_table_name afs_error_table_name +#define add_to_error_table(X) afs_add_to_error_table(X) +#endif /* AFS_OLD_COM_ERR */ +#define _AFS_ET_H #endif