Mutable is a keyword in C++11

This fix allows including OSTree on C++ projects.
This commit is contained in:
Leandro Santiago authored and Colin Walters committed 2015-09-23 08:29:35 -04:00
1 parent ed86160975
commit c61151d650
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -1960,7 +1960,7 @@ ostree_sysroot_deployment_set_kargs (OstreeSysroot *self,
* ostree_sysroot_deployment_set_mutable:
* @self: Sysroot
* @deployment: A deployment
* @mutable: Whether or not deployment's files can be changed
* @is_mutable: Whether or not deployment's files can be changed
* @error: Error
*
* By default, deployment directories are not mutable. This function
@@ -1970,7 +1970,7 @@ ostree_sysroot_deployment_set_kargs (OstreeSysroot *self,
gboolean
ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
OstreeDeployment *deployment,
gboolean mutable,
gboolean is_mutable,
GCancellable *cancellable,
GError **error)
{
@@ -1984,7 +1984,7 @@ ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
if (!glnx_opendirat (self->sysroot_fd, deployment_path, TRUE, &fd, error))
goto out;
if (!_ostree_linuxfs_fd_alter_immutable_flag (fd, !mutable, cancellable, error))
if (!_ostree_linuxfs_fd_alter_immutable_flag (fd, !is_mutable, cancellable, error))
goto out;
ret = TRUE;
+1 -1
View File
@@ -119,7 +119,7 @@ gboolean ostree_sysroot_deploy_tree (OstreeSysroot *self,
gboolean ostree_sysroot_deployment_set_mutable (OstreeSysroot *self,
OstreeDeployment *deployment,
gboolean mutable,
gboolean is_mutable,
GCancellable *cancellable,
GError **error);