* [PATCH 1/1] checkpoint_sem trivialities
@ 2009-06-16 22:04 Serge E. Hallyn
[not found] ` <20090616220410.GA7115-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Serge E. Hallyn @ 2009-06-16 22:04 UTC (permalink / raw)
To: Linux Containers
fix a typo in a comment
rather than #include msg.h just so util.h doesn't break on struct msg_msg,
just fwd-declare it. Probably should be fixed in util.h itself?
Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
ipc/checkpoint_sem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ipc/checkpoint_sem.c b/ipc/checkpoint_sem.c
index e6934dc..19e9402 100644
--- a/ipc/checkpoint_sem.c
+++ b/ipc/checkpoint_sem.c
@@ -19,7 +19,7 @@
#include <linux/nsproxy.h>
#include <linux/ipc_namespace.h>
-#include <linux/msg.h> /* needed for util.h that uses 'struct msg_msg' */
+struct msg_msg;
#include "util.h"
#include <linux/checkpoint.h>
@@ -192,7 +192,7 @@ int restore_ipc_sem(struct ckpt_ctx *ctx)
ckpt_debug("sem: do_semget key %d flag %#x id %d\n",
h->perms.key, semflag, h->perms.id);
ret = do_semget(h->perms.key, h->sem_nsems, semflag, h->perms.id);
- ckpt_debug("sem: do_msgget ret %d\n", ret);
+ ckpt_debug("sem: do_semget ret %d\n", ret);
if (ret < 0)
goto out;
--
1.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] checkpoint_sem trivialities
[not found] ` <20090616220410.GA7115-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2009-06-18 16:41 ` Oren Laadan
0 siblings, 0 replies; 2+ messages in thread
From: Oren Laadan @ 2009-06-18 16:41 UTC (permalink / raw)
To: Serge E. Hallyn; +Cc: Linux Containers
Applied.
Serge E. Hallyn wrote:
> fix a typo in a comment
>
> rather than #include msg.h just so util.h doesn't break on struct msg_msg,
> just fwd-declare it. Probably should be fixed in util.h itself?
>
> Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> ---
> ipc/checkpoint_sem.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/ipc/checkpoint_sem.c b/ipc/checkpoint_sem.c
> index e6934dc..19e9402 100644
> --- a/ipc/checkpoint_sem.c
> +++ b/ipc/checkpoint_sem.c
> @@ -19,7 +19,7 @@
> #include <linux/nsproxy.h>
> #include <linux/ipc_namespace.h>
>
> -#include <linux/msg.h> /* needed for util.h that uses 'struct msg_msg' */
> +struct msg_msg;
> #include "util.h"
>
> #include <linux/checkpoint.h>
> @@ -192,7 +192,7 @@ int restore_ipc_sem(struct ckpt_ctx *ctx)
> ckpt_debug("sem: do_semget key %d flag %#x id %d\n",
> h->perms.key, semflag, h->perms.id);
> ret = do_semget(h->perms.key, h->sem_nsems, semflag, h->perms.id);
> - ckpt_debug("sem: do_msgget ret %d\n", ret);
> + ckpt_debug("sem: do_semget ret %d\n", ret);
> if (ret < 0)
> goto out;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-18 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-16 22:04 [PATCH 1/1] checkpoint_sem trivialities Serge E. Hallyn
[not found] ` <20090616220410.GA7115-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-06-18 16:41 ` Oren Laadan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.