From d2465398991d5d7f3f30ea0cc330e8a5cff6d6f7 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Wed, 4 Nov 2009 22:42:12 +0000
Subject: [PATCH] svn merge -r18973:18976
 https://eris.llnl.gov/svn/slurm/branches/slurm-2.0

---
 src/plugins/select/bluegene/block_allocator/bridge_linker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/select/bluegene/block_allocator/bridge_linker.c b/src/plugins/select/bluegene/block_allocator/bridge_linker.c
index 66f1a1ee80f..00bf33b89cf 100644
--- a/src/plugins/select/bluegene/block_allocator/bridge_linker.c
+++ b/src/plugins/select/bluegene/block_allocator/bridge_linker.c
@@ -737,7 +737,7 @@ extern int bridge_set_log_params(char *api_file_name, unsigned int level)
 	/* In the libraries linked to from the bridge there are stderr
 	   messages send which we would miss unless we dup this to the
 	   log */
-	(void)dup2(fp, STDERR_FILENO);
+	(void)dup2(fileno(fp), STDERR_FILENO);
 
 	if(fp2)
 		fclose(fp2);
-- 
GitLab