-/* edit.c -- bitmap file manipulation and editing */
-/*
-Copyright 2002-2004 John Coffman.
-All rights reserved.
-
-Licensed under the terms contained in the file 'COPYING' in the
-source directory.
-
-*/
+/* edit.c - Bitmap file manipulation and editing
+ *
+ * Copyright 2002-2004 John Coffman
+ * Copyright 2009-2015 Joachim Wiedorn
+ * All rights reserved.
+ *
+ * Licensed under the terms contained in the file 'COPYING'
+ * in the source directory.
+ */
#define _GNU_SOURCE
#include <unistd.h>
} tm;
static MENUTABLE *menu = &tm.mt;
static BITMAPLILOHEADER *lh = (void*)(tm.buffer +
- ((long)&tm.mt.row - (long)&tm.bmlh.row));
+ ((intptr_t)&tm.mt.row - (intptr_t)&tm.bmlh.row));
/* a convenience definition */
#define mn tm.mt