diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-04 05:25:16 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 20:47:08 +0300 |
commit | 0bda30e1ffd23488aa4a9b73f228089463fbee1a (patch) | |
tree | b0efb851be762c4d530cc259070005318702321d /newlib/libc/posix/execl.c | |
parent | 6783860a2e4e4183c073f62e4bb938cea0e096c3 (diff) |
ansification: remove _CONST
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/posix/execl.c')
-rw-r--r-- | newlib/libc/posix/execl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/newlib/libc/posix/execl.c b/newlib/libc/posix/execl.c index beb48c6ae..fbad9f3f8 100644 --- a/newlib/libc/posix/execl.c +++ b/newlib/libc/posix/execl.c @@ -19,8 +19,8 @@ static char ***p_environ = &environ; int _DEFUN(execl, (path, arg0, ...), - _CONST char *path, - _CONST char *arg0 _DOTS) + const char *path, + const char *arg0 _DOTS) #else @@ -28,8 +28,8 @@ _DEFUN(execl, (path, arg0, ...), int _DEFUN(execl, (path, arg0, va_alist), - _CONST char *path, - _CONST char *arg0, + const char *path, + const char *arg0, va_dcl) #endif @@ -37,16 +37,16 @@ _DEFUN(execl, (path, arg0, va_alist), { int i; va_list args; - _CONST char *argv[256]; + const char *argv[256]; va_start (args, arg0); argv[0] = arg0; i = 1; do - argv[i] = va_arg (args, _CONST char *); + argv[i] = va_arg (args, const char *); while (argv[i++] != NULL); va_end (args); - return _execve (path, (char * _CONST *) argv, *p_environ); + return _execve (path, (char * const *) argv, *p_environ); } #endif /* !_NO_EXECVE */ |