Skip to contentSkip to conversation

user-cr: Fix compile without CLONE_NEWPID

PATCH In review Matt Helsley 2 participants 2 messages Oct 7, 2009 – Oct 14, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 user-cr: Fix compile without CLONE_NEWPID

If CLONE_NEWPID is not defined the compile breaks because the parameter list for this stub was not updated.

Note: Same patch was sent earlier without a To: field. Sorry for all the noise.

---
 restart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
restart.c +1 -1
index c3f4349..e6e72ac 100644
@@ -894,7 +894,7 @@ static int ckpt_coordinator_pidns(struct ckpt_ctx *ctx)
 		return 0;
 }
 #else
-static int ckpt_coordinator_pidns(struct ckpt_ctx *ctx, int *status)
+static int ckpt_coordinator_pidns(struct ckpt_ctx *ctx)
 {
 	printf("logical error: ckpt_coordinator_pidns unexpected\n");
 	exit(1);
Signature · 1 line
1.5.6.3
#2 lore raw
In reply to a message not in the archive

Pulled, thanks.

Quoted 24 lines · Matt Helsley

If CLONE_NEWPID is not defined the compile breaks because the parameter list for this stub was not updated.

Note: Same patch was sent earlier without a To: field. Sorry for all the noise.

---
 restart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
restart.c +1 -1
index c3f4349..e6e72ac 100644
@@ -894,7 +894,7 @@ static int ckpt_coordinator_pidns(struct ckpt_ctx *ctx)
 		return 0;
 }
 #else
-static int ckpt_coordinator_pidns(struct ckpt_ctx *ctx, int *status)
+static int ckpt_coordinator_pidns(struct ckpt_ctx *ctx)
 {
 	printf("logical error: ckpt_coordinator_pidns unexpected\n");
 	exit(1);