* src/virsh.c: initialize a couple of variable to avoid warnings

when compiling with Fedora.
Daniel
This commit is contained in:
Daniel Veillard 2007-11-08 18:07:02 +00:00
parent 710547590b
commit 906c1f5055
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Nov 8 19:06:13 CET 2007 Daniel Veillard <veillard@redhat.com>
* src/virsh.c: initialize a couple of variable to avoid warnings
when compiling with Fedora.
Thu Nov 8 18:59:39 CET 2007 Daniel Veillard <veillard@redhat.com>
* src/virsh.c: patch from Jim Meyering to use gcc's printf attribute.

View File

@ -1137,9 +1137,9 @@ cmdSchedinfo(vshControl * ctl, vshCmd * cmd)
int nr_inputparams = 0;
int inputparams = 0;
int weightfound = 0;
int weight;
int weight = 0;
int capfound = 0;
int cap;
int cap = 0;
char str_weight[] = "weight";
char str_cap[] = "cap";
int ret_val = FALSE;