chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / import / import-compress.c
index fa3f162bf669d0402496520046b4b4fa7bebc4f2..d6b81330361199d9f3aef903831d20ff1756f0f1 100644 (file)
@@ -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;