From 15411c0cb1192799b37ec8f25d6f30e8d7292fc6 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 13 Mar 2015 14:08:00 +0100 Subject: tree-wide: there is no ENOTSUP on linux Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses. --- src/shared/machine-image.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/shared/machine-image.c') diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c index 00337e7c9f..edf986d4db 100644 --- a/src/shared/machine-image.c +++ b/src/shared/machine-image.c @@ -369,7 +369,7 @@ int image_remove(Image *i) { return rm_rf_dangerous(i->path, false, true, false); default: - return -ENOTSUP; + return -EOPNOTSUPP; } } @@ -430,7 +430,7 @@ int image_rename(Image *i, const char *new_name) { } default: - return -ENOTSUP; + return -EOPNOTSUPP; } if (!new_path) @@ -498,7 +498,7 @@ int image_clone(Image *i, const char *new_name, bool read_only) { break; default: - return -ENOTSUP; + return -EOPNOTSUPP; } if (r < 0) @@ -563,7 +563,7 @@ int image_read_only(Image *i, bool b) { } default: - return -ENOTSUP; + return -EOPNOTSUPP; } return 0; @@ -622,7 +622,7 @@ int image_set_limit(Image *i, uint64_t referenced_max) { return -EROFS; if (i->type != IMAGE_SUBVOLUME) - return -ENOTSUP; + return -EOPNOTSUPP; return btrfs_quota_limit(i->path, referenced_max); } -- cgit v1.2.3-54-g00ecf