projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uclient-http: make username/password variables local
[project/uclient.git]
/
uclient-fetch.c
diff --git
a/uclient-fetch.c
b/uclient-fetch.c
index fa60eb3ba18b099f1dfa644948ff7dfc3ea99c2d..f0f3dabab775c13fcdaf74818139098fcf250f3f 100644
(file)
--- a/
uclient-fetch.c
+++ b/
uclient-fetch.c
@@
-50,8
+50,6
@@
static const char *output_file;
static int output_fd = -1;
static int error_ret;
static int out_bytes;
static int output_fd = -1;
static int error_ret;
static int out_bytes;
-static char *username;
-static char *password;
static char *auth_str;
static char **urls;
static int n_urls;
static char *auth_str;
static char **urls;
static int n_urls;
@@
-434,6
+432,8
@@
static const struct option longopts[] = {
int main(int argc, char **argv)
{
const char *progname = argv[0];
int main(int argc, char **argv)
{
const char *progname = argv[0];
+ char *username = NULL;
+ char *password = NULL;
struct uclient *cl;
int longopt_idx = 0;
bool has_cert = false;
struct uclient *cl;
int longopt_idx = 0;
bool has_cert = false;