mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
src: replace use of INT_BUFSIZE_BOUND macros
Introduce a vastly simpler VIR_INT64_STR_BUFLEN constant which is large enough for all cases where we currently use INT_BUFSIZE_BOUND. This eliminates most use of the gnulib intprops.h header. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
|
||||
#include "internal.h"
|
||||
#include "conf/virdomainobjlist.h"
|
||||
#include "intprops.h"
|
||||
#include "viralloc.h"
|
||||
#include "virmacaddr.h"
|
||||
#include "virxml.h"
|
||||
@@ -1964,7 +1963,7 @@ cmdList(vshControl *ctl, const vshCmd *cmd)
|
||||
bool ret = false;
|
||||
virshDomainListPtr list = NULL;
|
||||
virDomainPtr dom;
|
||||
char id_buf[INT_BUFSIZE_BOUND(unsigned int)];
|
||||
char id_buf[VIR_INT64_STR_BUFLEN];
|
||||
unsigned int id;
|
||||
unsigned int flags = VIR_CONNECT_LIST_DOMAINS_ACTIVE;
|
||||
vshTablePtr table = NULL;
|
||||
|
||||
Reference in New Issue
Block a user