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:
Darshit Shah 2014-11-22 13:40:13 +05:30
parent eab0f5d222
commit 1b8e54b808
4 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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