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/qcow2-util.c | |
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/qcow2-util.c')
-rw-r--r-- | src/import/qcow2-util.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |