mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 00:58:36 -04:00
Use 'const int *' for sysentvec errno translation table
This allows an sv_errtbl to be read-only .rodata. Sponsored by: Turing Robotic Industries Inc.
This commit is contained in:
parent
2e4dad82c7
commit
581bf7cbda
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ struct sysentvec {
|
|||
struct sysent *sv_table; /* pointer to sysent */
|
||||
u_int sv_mask; /* optional mask to index */
|
||||
int sv_errsize; /* size of errno translation table */
|
||||
int *sv_errtbl; /* errno translation table */
|
||||
const int *sv_errtbl; /* errno translation table */
|
||||
int (*sv_transtrap)(int, int);
|
||||
/* translate trap-to-signal mapping */
|
||||
int (*sv_fixup)(register_t **, struct image_params *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue