diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-03-13 14:08:00 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-03-13 14:10:39 +0100 |
commit | 15411c0cb1192799b37ec8f25d6f30e8d7292fc6 (patch) | |
tree | 003adfa8f694890078b5fb6d901e420c9a966ece /src/import | |
parent | 32a568fb90bf0a22a3007fa670305403a5d0bb72 (diff) |
tree-wide: there is no ENOTSUP on linux
Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses.
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; |