File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,21 +100,21 @@ static inline int nacl_startup_argc(const uint32_t info[]) {
100100 return info [NACL_STARTUP_ARGC ];
101101}
102102
103- static inline char * * nacl_startup_argv (const uint32_t * info ) {
104- return (char * * ) & info [NACL_STARTUP_ARGV ];
103+ static inline char * const * nacl_startup_argv (const uint32_t * info ) {
104+ return (char * const * ) & info [NACL_STARTUP_ARGV ];
105105}
106106
107107static inline int nacl_startup_envc (const uint32_t info []) {
108108 return info [NACL_STARTUP_ENVC ];
109109}
110110
111- static inline char * * nacl_startup_envp (const uint32_t * info ) {
111+ static inline char * const * nacl_startup_envp (const uint32_t * info ) {
112112 return & nacl_startup_argv (info )[nacl_startup_argc (info ) + 1 ];
113113}
114114
115- static inline Elf32_auxv_t * nacl_startup_auxv (const uint32_t * info ) {
116- char * * envend = & nacl_startup_envp (info )[nacl_startup_envc (info ) + 1 ];
117- return (Elf32_auxv_t * ) envend ;
115+ static inline const Elf32_auxv_t * nacl_startup_auxv (const uint32_t * info ) {
116+ char * const * envend = & nacl_startup_envp (info )[nacl_startup_envc (info ) + 1 ];
117+ return (const Elf32_auxv_t * ) envend ;
118118}
119119
120120#endif
You can’t perform that action at this time.
0 commit comments