diff options
author | Karel Zak | 2012-11-05 16:48:12 +0100 |
---|---|---|
committer | Karel Zak | 2012-11-23 14:58:21 +0100 |
commit | 61e14b4a61818568051471075c39fa595b60bb35 (patch) | |
tree | 6532d8ccfd8bb9caf69f09c198679e8953749ff3 /sys-utils/ipcutils.h | |
parent | ipcs: read shared memory values from /proc (diff) | |
download | kernel-qcow2-util-linux-61e14b4a61818568051471075c39fa595b60bb35.tar.gz kernel-qcow2-util-linux-61e14b4a61818568051471075c39fa595b60bb35.tar.xz kernel-qcow2-util-linux-61e14b4a61818568051471075c39fa595b60bb35.zip |
ipcs: clean up do_shm()
- don't expect maxid as argument in ipc_shm_get_info()
- if there is @id argument then use it everywhere in ipc_shm_get_info()
- don't call shmctl() if not necessary in do_shm()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/ipcutils.h')
-rw-r--r-- | sys-utils/ipcutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/ipcutils.h b/sys-utils/ipcutils.h index 8e2bfddfb..45a75d84f 100644 --- a/sys-utils/ipcutils.h +++ b/sys-utils/ipcutils.h @@ -129,7 +129,7 @@ struct shm_data { struct shm_data *next; }; -extern int ipc_shm_get_info(int maxid, int id, struct shm_data **shmds); +extern int ipc_shm_get_info(int id, struct shm_data **shmds); extern void ipc_shm_free_info(struct shm_data *shmds); #endif /* UTIL_LINUX_IPCUTILS_H */ |