]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ipcs: clean up do_shm()
authorKarel Zak <kzak@redhat.com>
Mon, 5 Nov 2012 15:48:12 +0000 (16:48 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Nov 2012 13:58:21 +0000 (14:58 +0100)
commit61e14b4a61818568051471075c39fa595b60bb35
tree6532d8ccfd8bb9caf69f09c198679e8953749ff3
parent058e81540fbb0d2b780245361fa13376478b7375
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>
sys-utils/ipcs.c
sys-utils/ipcutils.c
sys-utils/ipcutils.h