aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.h
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-06-16 03:29:59 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:34:35 -0400
commit8fbe71f0e0ac28a39e4a93694c34d670c2f31e88 (patch)
tree95dc6db6aaaa31a8876bc99c1531bfc26d0e838c /security/tomoyo/common.h
parentcb917cf517075a357ce43b74e8a5a57f2c69a734 (diff)
TOMOYO: Make read function to void.
Read functions do not fail. Make them from int to void. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r--security/tomoyo/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index f4da7a8034a3..e0c4ae11bf6c 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -526,7 +526,7 @@ struct tomoyo_mount_acl {
526 * is appended. 526 * is appended.
527 */ 527 */
528struct tomoyo_io_buffer { 528struct tomoyo_io_buffer {
529 int (*read) (struct tomoyo_io_buffer *); 529 void (*read) (struct tomoyo_io_buffer *);
530 int (*write) (struct tomoyo_io_buffer *); 530 int (*write) (struct tomoyo_io_buffer *);
531 int (*poll) (struct file *file, poll_table *wait); 531 int (*poll) (struct file *file, poll_table *wait);
532 /* Exclusive lock for this structure. */ 532 /* Exclusive lock for this structure. */
@@ -900,7 +900,7 @@ void *tomoyo_commit_ok(void *data, const unsigned int size);
900const struct tomoyo_path_info *tomoyo_get_name(const char *name); 900const struct tomoyo_path_info *tomoyo_get_name(const char *name);
901 901
902/* Check for memory usage. */ 902/* Check for memory usage. */
903int tomoyo_read_memory_counter(struct tomoyo_io_buffer *head); 903void tomoyo_read_memory_counter(struct tomoyo_io_buffer *head);
904 904
905/* Set memory quota. */ 905/* Set memory quota. */
906int tomoyo_write_memory_quota(struct tomoyo_io_buffer *head); 906int tomoyo_write_memory_quota(struct tomoyo_io_buffer *head);