* src/storage_backend_fs.c: fix a signed/unsigned issue breaking

virStorageBackendProbeFile(), patch by Cole Robinson
Daniel
This commit is contained in:
Daniel Veillard 2008-09-04 13:34:42 +00:00
parent a8d0600762
commit e88295804a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Sep 4 15:33:26 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/storage_backend_fs.c: fix a signed/unsigned issue breaking
virStorageBackendProbeFile(), patch by Cole Robinson
Thu Sep 4 15:18:00 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_driver.c: fix an error message, patch by Nguyen Anh Quynh

View File

@ -338,7 +338,7 @@ virStorageBackendFileSystemNetPoolFormatToString(virConnectPtr conn,
static int virStorageBackendProbeFile(virConnectPtr conn,
virStorageVolDefPtr def) {
int fd;
char head[4096];
unsigned char head[4096];
int len, i, ret;
if ((fd = open(def->target.path, O_RDONLY)) < 0) {