mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
The syscall names are string constants, so make them consts.
This commit is contained in:
parent
8471b60389
commit
6bd34a1e6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106149
@ -131,7 +131,7 @@ s/\$//g
|
||||
printf "#endif\n\n" > sysarg
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > sysnames
|
||||
printf "char *%s[] = {\n", namesname > sysnames
|
||||
printf "const char *%s[] = {\n", namesname > sysnames
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > syshdr
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* $FreeBSD$
|
||||
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.133 2002/10/22 14:22:24 rwatson Exp
|
||||
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.134 2002/10/25 19:10:57 peter Exp
|
||||
*/
|
||||
|
||||
char *syscallnames[] = {
|
||||
const char *syscallnames[] = {
|
||||
"syscall", /* 0 = syscall */
|
||||
"exit", /* 1 = exit */
|
||||
"fork", /* 2 = fork */
|
||||
|
Loading…
Reference in New Issue
Block a user