David McCreedy <[EMAIL PROTECTED]> writes:
> This patch is specific to TPF code and therefore shouldn't affect other
> platforms.
>
> It does the following:
>
> 1) Allow the use of Apache's -f, -d, -D, & -X flags on IBM's TPF
> operating system
> 2) Allow syslog to be used by Apache on TPF
> 3) Remove unused expat-lite object files from the sample link JCL
>
> Please let me know if you have any concerns or comments.
no real concerns...
a couple of comments...
why not use malloc() instead of calloc() in the code below?
assignment statements should have spaces around the '=' (duck :) )
> +void ap_tpf_save_argv(int argc, char **argv) {
> +
> + int i, len=3; /* 3 for "-x " */
> +
> + for (i= 1; i < argc; i++) { /* find len for calloc */
> + len += strlen (argv[i]);
> + ++len; /* 1 for blank */
> + }
> +
> + argv_ptr = calloc (1, len + 1);
> + strcpy(argv_ptr, "-x");
> + for (i= 1; i < argc; i++) {
> + strcat(argv_ptr, " ");
> + strcat(argv_ptr, argv[i]);
> + }
> +}
--
Jeff Trawick | [EMAIL PROTECTED]
Born in Roswell... married an alien...