X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=mach%2Ferrorlib.h;h=7fe6350b434c3369304f0c2dbce26234c62b2503;hp=612774e5dbc7c18168427231ce811e5e2c8cc329;hb=fcb39030cc930bbbcaaa302612b782ade4a49000;hpb=4c66d8ef0b616fbce48cf4968973721eceb44c36 diff --git a/mach/errorlib.h b/mach/errorlib.h index 612774e5db..7fe6350b43 100644 --- a/mach/errorlib.h +++ b/mach/errorlib.h @@ -26,8 +26,11 @@ /* * HISTORY * $Log$ - * Revision 1.2 1993/11/18 10:13:58 roland - * Formerly ../mach/errorlib.h.~2~ + * Revision 1.5 1995/03/10 23:57:44 roland + * (errors): Use const for decl. + * + * Revision 1.4 1993/12/17 21:56:16 roland + * entered into RCS * * Revision 2.3 92/03/31 15:18:52 rpd * Added KERN_DEVICE_MOD for device errors. @@ -70,18 +73,18 @@ #define NO_SUCH_ERROR "unknown error code" struct error_subsystem { - char * subsys_name; + const char * subsys_name; int max_code; - char * * codes; + const char * const * codes; }; struct error_system { int max_sub; - char * bad_sub; - struct error_subsystem * subsystem; + const char * bad_sub; + const struct error_subsystem * subsystem; }; #define errors __mach_error_systems -extern struct error_system errors[err_max_system+1]; +extern const struct error_system errors[err_max_system+1]; #define errlib_count(s) (sizeof(s)/sizeof(s[0]))