mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
virbuffer: Use signed integer for storing error
The @error member can contain a positive value (errno) or a negative value (-1) to denote a usage error. It doesn't make much sense to store it as unsigned then. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
babb4e6d31
commit
967f555da7
@ -40,7 +40,7 @@ typedef virBuffer *virBufferPtr;
|
||||
struct _virBuffer {
|
||||
size_t size;
|
||||
size_t use;
|
||||
unsigned int error; /* errno value, or -1 for usage error */
|
||||
int error; /* errno value, or -1 for usage error */
|
||||
int indent;
|
||||
char *content;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user