From fd132d9267de7d1056d1695d3226c131ae3722a1 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Thu, 27 Apr 2006 16:18:35 +0000
Subject: [PATCH] Correct typo in variable name.

---
 slurm/slurm.h.in                 | 2 +-
 src/common/slurm_protocol_defs.c | 2 +-
 src/slurmctld/node_scheduler.c   | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/slurm/slurm.h.in b/slurm/slurm.h.in
index 1b9a2198872..10ebe4f652f 100644
--- a/slurm/slurm.h.in
+++ b/slurm/slurm.h.in
@@ -166,7 +166,7 @@ enum job_wait_reason {
 	WAIT_NO_REASON = 0,	/* not set or job not pending */
 	WAIT_PRIORITY,		/* higher priority jobs exist */
 	WAIT_DEPENDENCY,	/* depedent job has not completed */
-	WAIT_RESOUCES,		/* required resources not available */
+	WAIT_RESOURCES,		/* required resources not available */
 	WAIT_PART_NODE_LIMIT,	/* request exceeds partition node limit */
 	WAIT_PART_TIME_LIMIT,	/* request exceeds partition time limit */
 	WAIT_PART_STATE,	/* requested partition is down */
diff --git a/src/common/slurm_protocol_defs.c b/src/common/slurm_protocol_defs.c
index 909fc5d9ded..479a2169a06 100644
--- a/src/common/slurm_protocol_defs.c
+++ b/src/common/slurm_protocol_defs.c
@@ -480,7 +480,7 @@ extern char *job_reason_string(enum job_wait_reason inx)
 			return "Priority";
 		case WAIT_DEPENDENCY:
 			return "Dependency";
-		case WAIT_RESOUCES:
+		case WAIT_RESOURCES:
 			return "Resources";
 		case WAIT_PART_NODE_LIMIT:
 			return "PartitionNodeLimit";
diff --git a/src/slurmctld/node_scheduler.c b/src/slurmctld/node_scheduler.c
index 4e9085481cd..6033b9ff9fb 100644
--- a/src/slurmctld/node_scheduler.c
+++ b/src/slurmctld/node_scheduler.c
@@ -4,7 +4,7 @@
  *
  *  $Id$
  *****************************************************************************
- *  Copyright (C) 2002 The Regents of the University of California.
+ *  Copyright (C) 2002-2006 The Regents of the University of California.
  *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
  *  Written by Morris Jette <jette1@llnl.gov>
  *  UCRL-CODE-217948.
@@ -884,7 +884,7 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only)
 				      shared, part_node_limit);
 	if (error_code) {
 		if (detail_ptr)
-			detail_ptr->wait_reason = WAIT_RESOUCES;
+			detail_ptr->wait_reason = WAIT_RESOURCES;
 		if (error_code == ESLURM_REQUESTED_PART_CONFIG_UNAVAILABLE) {
 			/* Required nodes are down or 
 			 * too many nodes requested */
-- 
GitLab