aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2002-09-09 21:28:19 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-09-09 21:28:19 -0700
commit78642ee8c4d6fcea840747fb5f3893454221ff65 (patch)
tree1da0ab1d4cf9ff080f93b0e62e8ebba0c6065c12 /ipc
parent9bbe1a9cb818db018f0c99bd127a0e27bc3ac6e9 (diff)
downloadhistory-78642ee8c4d6fcea840747fb5f3893454221ff65.tar.gz
[PATCH] Designated initializers for shm
The old form of designated initializers are obsolete: we need to replace them with the ISO C forms before 2.6. Gcc has always supported both forms anyway.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/shm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 8618c5fb1977d8..431f870337e4e1 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -154,13 +154,13 @@ static int shm_mmap(struct file * file, struct vm_area_struct * vma)
}
static struct file_operations shm_file_operations = {
- mmap: shm_mmap
+ .mmap = shm_mmap
};
static struct vm_operations_struct shm_vm_ops = {
- open: shm_open, /* callback for a new vm-area open */
- close: shm_close, /* callback for when the vm-area is released */
- nopage: shmem_nopage,
+ .open = shm_open, /* callback for a new vm-area open */
+ .close = shm_close, /* callback for when the vm-area is released */
+ .nopage = shmem_nopage,
};
static int newseg (key_t key, int shmflg, size_t size)