History

xattr: Constify ->name member of "struct xattr".

Since everybody sets kstrdup()ed constant string to "struct xattr"->name but nobody modifies "struct xattr"->name , we can omit kstrdup() and its failure checking by constifying ->name member of "struct xattr".

Tetsuo Handa committed 13 years ago

Commit 95489061 parent be0306b9 files · +21 −31Browse files

Showing the changes to include/uapi/linux (1 of 9 files). Show all

Unified · Split

include/uapi/linux/reiserfs_xattr.h+1−1
@@ -16,7 +16,7 @@ struct reiserfs_xattr_header { · 15 unmodified lines
16};16};
17 17
18struct reiserfs_security_handle {18struct reiserfs_security_handle {
19 char *name;19 const char *name;
20 void *value;20 void *value;
21 size_t length;21 size_t length;
22};22};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t