com_err: Constify xyz_error_strings arrays.
Note: This changes the types of public symbols. It is unlikely that any applications would rightly _write_ to these arrays, but it is possible they might require some UNCONST in order to pass the pointers to other functions that are missing const qualifiers.
This commit is contained in:

committed by
Nico Williams

parent
c69ce29a31
commit
426eb46441
@@ -87,7 +87,7 @@ generate_c(void)
|
||||
fprintf(c_file, "#define N_(x) (x)\n");
|
||||
fprintf(c_file, "\n");
|
||||
|
||||
fprintf(c_file, "static const char *%s_error_strings[] = {\n", name);
|
||||
fprintf(c_file, "static const char *const %s_error_strings[] = {\n", name);
|
||||
|
||||
for(ec = codes, n = 0; ec; ec = ec->next, n++) {
|
||||
while(n < ec->number) {
|
||||
|
Reference in New Issue
Block a user