From 3bf12b988596b37a3dd95125de3b270cb28e9318 Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Sun, 21 Nov 2004 13:47:03 +0000 Subject: [PATCH] Removed an unneeded include, cleanup. --- zsnes/src/jma/jma.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zsnes/src/jma/jma.cpp b/zsnes/src/jma/jma.cpp index 2437218a..98422d22 100644 --- a/zsnes/src/jma/jma.cpp +++ b/zsnes/src/jma/jma.cpp @@ -17,7 +17,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include #include #include "jma.h" using namespace std; @@ -29,6 +28,7 @@ using namespace std; namespace JMA { const char jma_magic[] = { 'J', 'M', 'A', 0, 'N' }; + const unsigned int jma_header_length = 5; const unsigned char jma_version = 0; const unsigned char jma_null = 0; @@ -141,9 +141,9 @@ namespace JMA } //Header is "JMA\0N" - unsigned char header[5]; - stream.read((char *)header, 5); - if (memcmp(jma_magic, header, 5)) + unsigned char header[jma_header_length]; + stream.read((char *)header, jma_header_length); + if (memcmp(jma_magic, header, jma_header_length)) { throw(JMA_BAD_FILE); }