bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH] fix warnings in test code


From: Tim Ruehsen
Subject: [Bug-wget] [PATCH] fix warnings in test code
Date: Tue, 17 Apr 2012 17:45:13 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

* moved test function prototypes from test.c to test.h
* fixed prototypes of test code functions
* fixed discarding 'const ' qualifiers in test code

In options.h I had to change types for option.includes and option.excludes 
from 'char **' to 'const char **' to resolve the above issues.

Well, I think most of the 'char *' or 'char **' options should be const. That 
makes the compiler shout, whenever one *accidentially* tries to write
What do you think ?

Tim

Attachment: testcode_warnings.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]