diff options
Diffstat (limited to 'src/import')
-rw-r--r-- | src/import/import-compress.c | 6 | ||||
-rw-r--r-- | src/import/qcow2-util.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/import/import-compress.c b/src/import/import-compress.c index fa3f162bf6..d6b8133036 100644 --- a/src/import/import-compress.c +++ b/src/import/import-compress.c @@ -234,7 +234,7 @@ int import_compress_init(ImportCompress *c, ImportCompressType t) { break; default: - return -ENOTSUP; + return -EOPNOTSUPP; } c->encoding = true; @@ -365,7 +365,7 @@ int import_compress(ImportCompress *c, const void *data, size_t size, void **buf break; default: - return -ENOTSUP; + return -EOPNOTSUPP; } return 0; @@ -453,7 +453,7 @@ int import_compress_finish(ImportCompress *c, void **buffer, size_t *buffer_size break; default: - return -ENOTSUP; + return -EOPNOTSUPP; } return 0; diff --git a/src/import/qcow2-util.c b/src/import/qcow2-util.c index 9b0c23bb14..fd3cf1b0e3 100644 --- a/src/import/qcow2-util.c +++ b/src/import/qcow2-util.c @@ -177,7 +177,7 @@ static int normalize_offset( uint64_t sz, csize_shift, csize_mask; if (!compressed) - return -ENOTSUP; + return -EOPNOTSUPP; csize_shift = 64 - 2 - (HEADER_CLUSTER_BITS(header) - 8); csize_mask = (1ULL << (HEADER_CLUSTER_BITS(header) - 8)) - 1; @@ -216,10 +216,10 @@ static int verify_header(const Header *header) { if (HEADER_VERSION(header) != 2 && HEADER_VERSION(header) != 3) - return -ENOTSUP; + return -EOPNOTSUPP; if (HEADER_CRYPT_METHOD(header) != 0) - return -ENOTSUP; + return -EOPNOTSUPP; if (HEADER_CLUSTER_BITS(header) < 9) /* 512K */ return -EBADMSG; @@ -236,7 +236,7 @@ static int verify_header(const Header *header) { if (HEADER_VERSION(header) == 3) { if (header->incompatible_features != 0) - return -ENOTSUP; + return -EOPNOTSUPP; if (HEADER_HEADER_LENGTH(header) < sizeof(Header)) return -EBADMSG; |