free: do not mix declarations and code [smatch scan]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
2
free.c
2
free.c
@@ -166,7 +166,6 @@ int main(int argc, char **argv)
|
|||||||
int c, flags = 0;
|
int c, flags = 0;
|
||||||
char *endptr;
|
char *endptr;
|
||||||
struct commandline_arguments args;
|
struct commandline_arguments args;
|
||||||
args.repeat_counter = 0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For long options that have no equivalent short option, use a
|
* For long options that have no equivalent short option, use a
|
||||||
@@ -199,6 +198,7 @@ int main(int argc, char **argv)
|
|||||||
/* defaults to old format */
|
/* defaults to old format */
|
||||||
args.exponent = 0;
|
args.exponent = 0;
|
||||||
args.repeat_interval = 1000000;
|
args.repeat_interval = 1000000;
|
||||||
|
args.repeat_counter = 0;
|
||||||
|
|
||||||
while ((c = getopt_long(argc, argv, "bkmghlotc:s:V", longopts, NULL)) != -1)
|
while ((c = getopt_long(argc, argv, "bkmghlotc:s:V", longopts, NULL)) != -1)
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
Reference in New Issue
Block a user