diff options
author | Denis Vlasenko | 2006-09-23 12:22:11 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-23 12:22:11 +0000 |
commit | 6429aabbf14be7ce1585fb07b1edb11795dbefc2 (patch) | |
tree | e2807acf29f2f5c5f0281f2763df6987ae0cc61d /miscutils | |
parent | b97f07f5a10b33ba115a7eb60acc25dfc86b3f55 (diff) | |
download | busybox-6429aabbf14be7ce1585fb07b1edb11795dbefc2.zip busybox-6429aabbf14be7ce1585fb07b1edb11795dbefc2.tar.gz |
bb_askpass: shorten static password buffer. 256 is way too large.
simplify code a bit.
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/hdparm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 97f1b57..b901423 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -2058,13 +2058,13 @@ static void identify_from_stdin(void) /* busybox specific stuff */ static void parse_opts(unsigned long *get, unsigned long *set, unsigned long *value, int min, int max) { - if (get) { - *get = 1; - } - if (optarg) { - *set = 1; - *value = bb_xgetlarg(optarg, 10, min, max); - } + if (get) { + *get = 1; + } + if (optarg) { + *set = 1; + *value = bb_xgetlarg(optarg, 10, min, max); + } } static void parse_xfermode(int flag, unsigned long *get, unsigned long *set, int *value) |