From 54e23d6ca0301f9bfeb27447d767aea75d7ec04d Mon Sep 17 00:00:00 2001
From: moe <moe@moe-netbook.(none)>
Date: Wed, 24 Aug 2011 14:56:33 -0700
Subject: [PATCH] Fix two compiler warnings

---
 src/common/xcgroup.c | 2 +-
 src/salloc/salloc.c  | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/common/xcgroup.c b/src/common/xcgroup.c
index be87b29888b..e4f0ecacb27 100644
--- a/src/common/xcgroup.c
+++ b/src/common/xcgroup.c
@@ -1048,7 +1048,7 @@ int _file_write_content(char* file_path, char* content, size_t csize)
 	/* check read size */
 	if (rc < csize) {
 		debug2("unable to write %lu bytes to file '%s' : %m",
-		       csize, file_path);
+		       (long unsigned int) csize, file_path);
 		fstatus = XCGROUP_ERROR;
 	}
 	else
diff --git a/src/salloc/salloc.c b/src/salloc/salloc.c
index 36aa335bd4e..9222ab27b2d 100644
--- a/src/salloc/salloc.c
+++ b/src/salloc/salloc.c
@@ -85,6 +85,10 @@ extern uint64_t job_getjid(pid_t pid);
 #endif
 #endif
 
+#ifndef __USE_XOPEN_EXTENDED
+extern pid_t getpgid(pid_t pid);
+#endif
+
 #define HASH_RECS	100
 #define MAX_RETRIES	10
 #define POLL_SLEEP	3	/* retry interval in seconds  */
-- 
GitLab