mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Add extern declaration for program_arsgstring
In test.c, this patch changes the type of program_argstring to char * from a const char *. This is because, we use a char * string in the rest of the program and declare an extern accordingly. Removing the const type helps in keeping the code cleaner at no extra cost.
This commit is contained in:
parent
eab0f5d222
commit
1b8e54b808
@ -1,3 +1,9 @@
|
||||
2014-11-22 Darshit Shah <darnir@gmail.com>
|
||||
|
||||
* wget.h: Make extern declaration for program_argstring.
|
||||
* warc.c: Remove extern declaration
|
||||
* test.c: Make program_argstring a char *, instead of const char *.
|
||||
|
||||
2014-11-22 Darshit Shah <darnir@gmail.com>
|
||||
|
||||
* wget.h: Make extern declaration for program_name
|
||||
|
@ -51,7 +51,7 @@ const char *test_append_uri_pathel(void);
|
||||
const char *test_are_urls_equal(void);
|
||||
const char *test_is_robots_txt_url(void);
|
||||
|
||||
const char *program_argstring = "TEST";
|
||||
char *program_argstring = "TEST";
|
||||
|
||||
int tests_run;
|
||||
|
||||
|
@ -68,10 +68,6 @@ as that of the covered work. */
|
||||
#endif
|
||||
|
||||
|
||||
/* Set by main in main.c */
|
||||
extern char *program_argstring;
|
||||
|
||||
|
||||
/* The log file (a temporary file that contains a copy
|
||||
of the wget log). */
|
||||
static FILE *warc_log_fp;
|
||||
|
@ -314,6 +314,7 @@ typedef double SUM_SIZE_INT;
|
||||
|
||||
extern const char *exec_name;
|
||||
extern char *program_name;
|
||||
extern char *program_argstring;
|
||||
|
||||
/* Document type ("dt") flags */
|
||||
enum
|
||||
|
Loading…
Reference in New Issue
Block a user