[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] contributing to wget
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-wget] contributing to wget |
Date: |
Fri, 11 Jun 2010 11:08:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hello,
thanks for your contribution.
I have some comments:
"address@hidden" <address@hidden> writes:
> Thanks for the encouragement! I've attached a patch which should tell
> the user there is a problem with the system wgetrc file and exit. Seems
> suspiciously simple, can anyone spot any problems with it?
>
> Reza Snowdon
> --- wget_clean/wget/src/init.c 2010-06-11 00:31:32.000000000 +0100
> +++ wget/src/init.c 2010-06-11 00:32:37.000000000 +0100
> @@ -526,7 +526,8 @@
> ln = 1;
> while ((line = read_whole_line (fp)) != NULL)
> {
> - char *com = NULL, *val = NULL;
> +
> + char *com = NULL, *val = NULL;
I don't think you want really to break the sexy GNU indentation here.
> + if (!ok)
> + {
> + fprintf(stderr, _("Parsing system wgetrc file failed; please check
> '%s'.\n"), SYSTEM_WGETRC);
> + exit(2);
> + }
Please leave an empty space between the function name and '(',
e.g., "fprintf (..." and break that long line to 80 columns.
Please change the type of the variable `ok' to `bool' and include this
change in your patch, also include <stdbool.h>.
As last thing, please provide a ChangeLog entry (src/ChangeLog) and a
NEWS file entry.
Cheers,
Giuseppe
- [Bug-wget] contributing to wget, address@hidden, 2010/06/09
- Re: [Bug-wget] contributing to wget, Micah Cowan, 2010/06/09
- Re: [Bug-wget] contributing to wget, address@hidden, 2010/06/10
- Re: [Bug-wget] contributing to wget, Hrvoje Niksic, 2010/06/11
- Re: [Bug-wget] contributing to wget, Giuseppe Scrivano, 2010/06/11
- Re: [Bug-wget] contributing to wget, vivi, 2010/06/11
- RE: [Bug-wget] contributing to wget, Tony Lewis, 2010/06/11
- Re: [Bug-wget] contributing to wget, vivi, 2010/06/11
- Re: [Bug-wget] contributing to wget,
Giuseppe Scrivano <=
- Re: [Bug-wget] contributing to wget, Daniel Stenberg, 2010/06/11
- Re: [Bug-wget] contributing to wget, Giuseppe Scrivano, 2010/06/11
- Re: [Bug-wget] contributing to wget, Micah Cowan, 2010/06/11