projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
278e8d4
)
ext4: @replace in ext4_setxattr() is deprecated
author
Kaho Ng
<ngkaho1234@gmail.com>
Sun, 19 Jun 2016 18:06:04 +0000
(
02:06
+0800)
committer
Kaho Ng
<ngkaho1234@gmail.com>
Mon, 20 Jun 2016 10:06:15 +0000
(18:06 +0800)
include/ext4.h
patch
|
blob
|
history
src/ext4.c
patch
|
blob
|
history
diff --git
a/include/ext4.h
b/include/ext4.h
index 102802cff705f78f7be5c555ce7e5b4c283b3d4c..fede38f0273651f0833775a834d9eae69d794981 100644
(file)
--- a/
include/ext4.h
+++ b/
include/ext4.h
@@
-388,7
+388,7
@@
int ext4_readlink(const char *path, char *buf, size_t bufsize, size_t *rcnt);
* @param name_len length of @name in bytes
* @param data data of the entry to add
* @param data_size size of data to add
* @param name_len length of @name in bytes
* @param data data of the entry to add
* @param data_size size of data to add
- * @param replace
whether existing entries should be replaced
+ * @param replace
this boolean is deprecated.
* @return standard error code*/
int ext4_setxattr(const char *path, const char *name, size_t name_len,
const void *data, size_t data_size, bool replace);
* @return standard error code*/
int ext4_setxattr(const char *path, const char *name, size_t name_len,
const void *data, size_t data_size, bool replace);
diff --git
a/src/ext4.c
b/src/ext4.c
index b529bbde24e047b8b48b7ddfef065d3e719cb317..86c5c1dc5e5dc92f1d0cba99c69fc0ecb91d5f0e 100644
(file)
--- a/
src/ext4.c
+++ b/
src/ext4.c
@@
-2414,7
+2414,7
@@
Finish:
}
int ext4_setxattr(const char *path, const char *name, size_t name_len,
}
int ext4_setxattr(const char *path, const char *name, size_t name_len,
- const void *data, size_t data_size, bool replace)
+ const void *data, size_t data_size, bool replace
__unused
)
{
bool found;
int r = EOK;
{
bool found;
int r = EOK;