From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: [PATCH 1/1] checkpoint_sem trivialities Date: Tue, 16 Jun 2009 17:04:10 -0500 Message-ID: <20090616220410.GA7115@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Linux Containers List-Id: containers.vger.kernel.org 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 --- 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 #include -#include /* needed for util.h that uses 'struct msg_msg' */ +struct msg_msg; #include "util.h" #include @@ -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