mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 01:04:59 +00: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 {
|
struct _virBuffer {
|
||||||
size_t size;
|
size_t size;
|
||||||
size_t use;
|
size_t use;
|
||||||
unsigned int error; /* errno value, or -1 for usage error */
|
int error; /* errno value, or -1 for usage error */
|
||||||
int indent;
|
int indent;
|
||||||
char *content;
|
char *content;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user