mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virsh: nuke use of TRUE and FALSE
Gnulib already guarantees <stdbool.h>, so it is easier to just use the standardized spellings. * tools/virsh.c (vshCmdDef): Change callback to return real bool. (__vshControl): Change several fields to bool. (vshCommandOptBool): Change return type. All callers updated. * tools/Makefile.am (virsh-net-edit.c, virsh-pool-edit.c): Likewise.
This commit is contained in:
parent
d2fd997ea6
commit
b56fa5bb37
@ -64,7 +64,7 @@ BUILT_SOURCES = virsh-net-edit.c virsh-pool-edit.c
|
|||||||
virsh-net-edit.c: virsh.c Makefile.am
|
virsh-net-edit.c: virsh.c Makefile.am
|
||||||
$(AM_V_GEN)rm -f $@-tmp && \
|
$(AM_V_GEN)rm -f $@-tmp && \
|
||||||
echo '/* Automatically generated from: $^ */' > $@-tmp && \
|
echo '/* Automatically generated from: $^ */' > $@-tmp && \
|
||||||
echo 'static int' >> $@-tmp && \
|
echo 'static bool' >> $@-tmp && \
|
||||||
awk '/^cmdEdit/, /^}/' $< \
|
awk '/^cmdEdit/, /^}/' $< \
|
||||||
| sed -e 's/domain/network/g' \
|
| sed -e 's/domain/network/g' \
|
||||||
-e 's/Domain/Network/g' \
|
-e 's/Domain/Network/g' \
|
||||||
@ -79,7 +79,7 @@ virsh-net-edit.c: virsh.c Makefile.am
|
|||||||
virsh-pool-edit.c: virsh.c Makefile.am
|
virsh-pool-edit.c: virsh.c Makefile.am
|
||||||
$(AM_V_GEN)rm -f $@-tmp && \
|
$(AM_V_GEN)rm -f $@-tmp && \
|
||||||
echo '/* Automatically generated from: $^ */' > $@-tmp && \
|
echo '/* Automatically generated from: $^ */' > $@-tmp && \
|
||||||
echo 'static int' >> $@-tmp && \
|
echo 'static bool' >> $@-tmp && \
|
||||||
awk '/^cmdEdit/, /^}/' $< \
|
awk '/^cmdEdit/, /^}/' $< \
|
||||||
| sed -e 's/domain/pool/g' \
|
| sed -e 's/domain/pool/g' \
|
||||||
-e 's/vshCommandOptDomain/vshCommandOptPool/g' \
|
-e 's/vshCommandOptDomain/vshCommandOptPool/g' \
|
||||||
|
1716
tools/virsh.c
1716
tools/virsh.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user