[syslinux] [PATCH 18/23] com32/chain: remove common.h

Michal Soltys soltys at ziu.info
Mon Nov 5 16:32:52 PST 2012


Only 2 defines there related to preliminary options.c's and chain.c's
hecks (real checks come later during mapping to real memory). So move
them to options.h and remove common.h.

Signed-off-by: Michal Soltys <soltys at ziu.info>
---
 com32/chain/chain.c    |    1 -
 com32/chain/common.h   |   39 ---------------------------------------
 com32/chain/mangle.c   |    1 -
 com32/chain/options.c  |    1 -
 com32/chain/options.h  |    3 +++
 com32/chain/partiter.c |    1 -
 6 files changed, 3 insertions(+), 43 deletions(-)
 delete mode 100644 com32/chain/common.h

diff --git a/com32/chain/chain.c b/com32/chain/chain.c
index 5c7b36f..38e647c 100644
--- a/com32/chain/chain.c
+++ b/com32/chain/chain.c
@@ -34,7 +34,6 @@
 #include <syslinux/config.h>
 #include <syslinux/disk.h>
 #include <syslinux/video.h>
-#include "common.h"
 #include "chain.h"
 #include "utility.h"
 #include "options.h"
diff --git a/com32/chain/common.h b/com32/chain/common.h
deleted file mode 100644
index 8437bc4..0000000
--- a/com32/chain/common.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* ----------------------------------------------------------------------- *
- *
- *   Copyright 2003-2009 H. Peter Anvin - All Rights Reserved
- *   Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
- *   Copyright 2010 Shao Miller
- *   Copyright 2010-2012 Michal Soltys
- *
- *   Permission is hereby granted, free of charge, to any person
- *   obtaining a copy of this software and associated documentation
- *   files (the "Software"), to deal in the Software without
- *   restriction, including without limitation the rights to use,
- *   copy, modify, merge, publish, distribute, sublicense, and/or
- *   sell copies of the Software, and to permit persons to whom
- *   the Software is furnished to do so, subject to the following
- *   conditions:
- *
- *   The above copyright notice and this permission notice shall
- *   be included in all copies or substantial portions of the Software.
- *
- *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- *   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- *   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- *   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- *   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- *   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- *   OTHER DEALINGS IN THE SOFTWARE.
- *
- * ----------------------------------------------------------------------- */
-
-#ifndef _COM32_CHAIN_COMMON_H
-#define _COM32_CHAIN_COMMON_H
-
-#define ADDRMAX 0x9EFFFu
-#define ADDRMIN 0x500u
-
-#endif
-
-/* vim: set ts=8 sts=4 sw=4 noet: */
diff --git a/com32/chain/mangle.c b/com32/chain/mangle.c
index bcd31e0..cb0462f 100644
--- a/com32/chain/mangle.c
+++ b/com32/chain/mangle.c
@@ -35,7 +35,6 @@
 #include <stdint.h>
 #include <dprintf.h>
 #include <syslinux/config.h>
-#include "common.h"
 #include "chain.h"
 #include "options.h"
 #include "utility.h"
diff --git a/com32/chain/options.c b/com32/chain/options.c
index 942a398..4df2459 100644
--- a/com32/chain/options.c
+++ b/com32/chain/options.c
@@ -31,7 +31,6 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
-#include "common.h"
 #include "chain.h"
 #include "partiter.h"
 #include "utility.h"
diff --git a/com32/chain/options.h b/com32/chain/options.h
index bec1e2c..db33df3 100644
--- a/com32/chain/options.h
+++ b/com32/chain/options.h
@@ -34,6 +34,9 @@
 #include <stdint.h>
 #include <syslinux/bootrm.h>
 
+#define ADDRMAX 0x9EFFFu
+#define ADDRMIN 0x500u
+
 struct options {
     const char *drivename;
     const char *partition;
diff --git a/com32/chain/partiter.c b/com32/chain/partiter.c
index d8d65e7..84fddec 100644
--- a/com32/chain/partiter.c
+++ b/com32/chain/partiter.c
@@ -40,7 +40,6 @@
 #include <stdarg.h>
 #include <zlib.h>
 #include <syslinux/disk.h>
-#include "common.h"
 #include "partiter.h"
 #include "utility.h"
 
-- 
1.7.10.4




More information about the Syslinux mailing list