pex-unix.c (to_ptr32): Fix style.
2012-04-04 Tristan Gingold <gingold@adacore.com> * pex-unix.c (to_ptr32): Fix style. From-SVN: r186134
This commit is contained in:
parent
9516c54ee3
commit
c1a969777f
@ -1,3 +1,7 @@
|
||||
2012-04-04 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* pex-unix.c (to_ptr32): Fix style.
|
||||
|
||||
2012-04-02 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* stack-limit.c: Includes ansidecl.h.
|
||||
|
@ -85,13 +85,15 @@ to_ptr32 (char **ptr64)
|
||||
int argc;
|
||||
__char_ptr_char_ptr32 short_argv;
|
||||
|
||||
for (argc=0; ptr64[argc]; argc++);
|
||||
/* Count number of arguments. */
|
||||
for (argc = 0; ptr64[argc] != NULL; argc++)
|
||||
;
|
||||
|
||||
/* Reallocate argv with 32 bit pointers. */
|
||||
short_argv = (__char_ptr_char_ptr32) decc$malloc
|
||||
(sizeof (__char_ptr32) * (argc + 1));
|
||||
|
||||
for (argc=0; ptr64[argc]; argc++)
|
||||
for (argc = 0; ptr64[argc] != NULL; argc++)
|
||||
short_argv[argc] = (__char_ptr32) decc$strdup (ptr64[argc]);
|
||||
|
||||
short_argv[argc] = (__char_ptr32) 0;
|
||||
|
Loading…
Reference in New Issue
Block a user