X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2Fedit.c;h=ded9c38d0629f19bd8a640e0417a28a272bb53eb;hb=HEAD;hp=2630fbe280990a3afedeb80571a7e3275f7e57c5;hpb=0a7ead9db7967764f0d93d30f9a83c94cb6fc358;p=rrq%2Fmaintain_lilo.git diff --git a/src/edit.c b/src/edit.c index 2630fbe..ded9c38 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1,12 +1,12 @@ -/* 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 @@ -193,7 +193,7 @@ static union { } 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