summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuediger Meier <ruediger.meier@ga-group.nl>2014-03-13 09:28:40 +0100
committerKarel Zak <kzak@redhat.com>2014-04-23 11:55:08 +0200
commit2b4afee6a7b445fa99c60eeaa2a0eab162cbc675 (patch)
tree42efb75d5ff77a36cd6e46b7a0a402a419f1d450
parentfbb07fb1bd1207c6b34b585a0535930589e1e2f1 (diff)
downloadutil-linux-2b4afee6a7b445fa99c60eeaa2a0eab162cbc675.tar.gz
ipcs: cleanup jumplabel stlyes
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
-rw-r--r--sys-utils/ipcutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-utils/ipcutils.c b/sys-utils/ipcutils.c
index 62d742845..564f7822d 100644
--- a/sys-utils/ipcutils.c
+++ b/sys-utils/ipcutils.c
@@ -105,7 +105,7 @@ int ipc_shm_get_info(int id, struct shm_data **shmds)
f = path_fopen("r", 0, _PATH_PROC_SYSV_SHM);
if (!f)
- goto fallback;
+ goto shm_fallback;
while (fgetc(f) != '\n'); /* skip header */
@@ -153,7 +153,7 @@ int ipc_shm_get_info(int id, struct shm_data **shmds)
return i;
/* Fallback; /proc or /sys file(s) missing. */
-fallback:
+shm_fallback:
i = id < 0 ? 0 : id;
maxid = shmctl(0, SHM_INFO, (struct shmid_ds *) &dummy);
@@ -299,7 +299,7 @@ int ipc_sem_get_info(int id, struct sem_data **semds)
return i;
/* Fallback; /proc or /sys file(s) missing. */
- sem_fallback:
+sem_fallback:
i = id < 0 ? 0 : id;
arg.array = (ushort *) (void *)&dummy;
@@ -422,7 +422,7 @@ int ipc_msg_get_info(int id, struct msg_data **msgds)
return i;
/* Fallback; /proc or /sys file(s) missing. */
- msg_fallback:
+msg_fallback:
i = id < 0 ? 0 : id;
maxid = msgctl(id, MSG_STAT, &dummy);