From 33553668b8163a59a926427490b86a00939d190a Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Fri, 24 Oct 2003 18:25:44 +0000
Subject: [PATCH] Remove some unnecessary #include headers. No changed in
 logic.

---
 src/scancel/opt.c     | 1 +
 src/scancel/scancel.c | 1 -
 src/scancel/scancel.h | 5 +----
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/scancel/opt.c b/src/scancel/opt.c
index ee051010b27..428ca8e069f 100644
--- a/src/scancel/opt.c
+++ b/src/scancel/opt.c
@@ -41,6 +41,7 @@
 #endif
 
 #include <src/common/log.h>
+#include <src/common/macros.h>
 #include <src/common/slurm_protocol_defs.h>
 #include <src/common/xmalloc.h>
 #include <src/common/xstring.h>
diff --git a/src/scancel/scancel.c b/src/scancel/scancel.c
index d7f3030d009..f1998444bf3 100644
--- a/src/scancel/scancel.c
+++ b/src/scancel/scancel.c
@@ -45,7 +45,6 @@
 #include <slurm/slurm.h>
 
 #include "src/common/log.h"
-#include "src/common/slurm_protocol_api.h"
 #include "src/common/xstring.h"
 #include "src/common/xmalloc.h"
 #include "src/scancel/scancel.h"
diff --git a/src/scancel/scancel.h b/src/scancel/scancel.h
index 99ea4266fd3..c6b9882e3c6 100644
--- a/src/scancel/scancel.h
+++ b/src/scancel/scancel.h
@@ -28,12 +28,9 @@
 #define _HAVE_SCANCEL_H
 
 #if HAVE_CONFIG_H
-#include "config.h"
+#  include "config.h"
 #endif
 
-#include <src/common/macros.h>	/* true and false */
-#include <src/common/slurm_protocol_defs.h>
-
 typedef struct scancel_options {
 
 	bool interactive;	/* --interactive, -i		*/
-- 
GitLab